VirtualBox

Changeset 12668 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Sep 23, 2008 12:35:28 PM (16 years ago)
Author:
vboxsync
Message:

PerfAPI: Added setupMetricsEx(), enableMetricsEx() and disableMetricsEx(). Added -list option to VBoxManage metrics setup. Updated docs and tstAPI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/PerformanceImpl.h

    r12400 r12668  
    6868    // public initializer/uninitializer for internal purposes only
    6969    HRESULT init (pm::Metric *aMetric);
     70    HRESULT init (pm::BaseMetric *aMetric);
    7071    void uninit();
    7172
     
    152153    STDMETHOD(DisableMetrics) (ComSafeArrayIn (INPTR BSTR, metricNames),
    153154                               ComSafeArrayIn (IUnknown *, objects));
     155    STDMETHOD(SetupMetricsEx) (ComSafeArrayIn (INPTR BSTR, metricNames),
     156                               ComSafeArrayIn (IUnknown *, objects),
     157                               ULONG aPeriod, ULONG aCount,
     158                               ComSafeArrayOut (IPerformanceMetric *,
     159                                                outMetrics));
     160    STDMETHOD(EnableMetricsEx) (ComSafeArrayIn (INPTR BSTR, metricNames),
     161                                ComSafeArrayIn (IUnknown *, objects),
     162                                ComSafeArrayOut (IPerformanceMetric *,
     163                                                 outMetrics));
     164    STDMETHOD(DisableMetricsEx) (ComSafeArrayIn (INPTR BSTR, metricNames),
     165                                 ComSafeArrayIn (IUnknown *, objects),
     166                                 ComSafeArrayOut (IPerformanceMetric *,
     167                                                  outMetrics));
    154168    STDMETHOD(QueryMetricsData) (ComSafeArrayIn (INPTR BSTR, metricNames),
    155169                                 ComSafeArrayIn (IUnknown *, objects),
     
    176190
    177191private:
    178 
     192    HRESULT toIPerformanceMetric(pm::Metric *src, IPerformanceMetric **dst);
     193    HRESULT toIPerformanceMetric(pm::BaseMetric *src, IPerformanceMetric **dst);
     194    HRESULT SetupMetricsInt(ComSafeArrayIn (INPTR BSTR, metricNames),
     195                            ComSafeArrayIn (IUnknown *, objects),
     196                            ULONG aPeriod, ULONG aCount, bool reportAffected,
     197                            ComSafeArrayOut (IPerformanceMetric *, outMetrics));
     198    HRESULT EnableMetricsInt (ComSafeArrayIn (INPTR BSTR, metricNames),
     199                              ComSafeArrayIn (IUnknown *, objects),
     200                              bool reportAffected,
     201                              ComSafeArrayOut (IPerformanceMetric *,
     202                                               outMetrics));
     203    HRESULT DisableMetricsInt (ComSafeArrayIn (INPTR BSTR, metricNames),
     204                               ComSafeArrayIn (IUnknown *, objects),
     205                               bool reportAffected,
     206                               ComSafeArrayOut (IPerformanceMetric *,
     207                                                outMetrics));
     208                           
    179209    static void staticSamplerCallback (RTTIMERLR hTimerLR, void *pvUser, uint64_t iTick);
    180210    void samplerCallback();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette