Changeset 11357 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 12, 2008 2:02:08 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r11108 r11357 7579 7579 7580 7580 #ifdef VBOX_WITH_RESOURCE_USAGE_API 7581 void Machine::registerMetrics (PerformanceCollector *aCollector, RTPROCESS pid)7581 void Machine::registerMetrics (PerformanceCollector *aCollector, Machine *aMachine, RTPROCESS pid) 7582 7582 { 7583 7583 pm::MetricFactory *metricFactory = aCollector->getMetricFactory(); … … 7589 7589 IUnknown *objptr; 7590 7590 7591 ComObjPtr<Machine> tmp = this;7591 ComObjPtr<Machine> tmp = aMachine; 7592 7592 tmp.queryInterfaceTo (&objptr); 7593 7593 pm::BaseMetric *cpuLoad = … … 7845 7845 7846 7846 #ifdef VBOX_WITH_RESOURCE_USAGE_API 7847 registerMetrics (mParent->performanceCollector(), mData->mSession.mPid);7847 registerMetrics (mParent->performanceCollector(), aMachine, mData->mSession.mPid); 7848 7848 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 7849 7849 -
trunk/src/VBox/Main/include/MachineImpl.h
r11083 r11357 736 736 737 737 #ifdef VBOX_WITH_RESOURCE_USAGE_API 738 void registerMetrics (PerformanceCollector *aCollector, RTPROCESS pid);738 void registerMetrics (PerformanceCollector *aCollector, Machine *aMachine, RTPROCESS pid); 739 739 void unregisterMetrics (PerformanceCollector *aCollector); 740 740 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r11182 r11357 966 966 com::SafeIfaceArray<IUnknown> objects(2); 967 967 host.queryInterfaceTo(&objects[0]); 968 sessionMachine.queryInterfaceTo(&objects[1]);968 machine.queryInterfaceTo(&objects[1]); 969 969 CHECK_ERROR_BREAK (collector, SetupMetrics(ComSafeArrayAsInParam(baseMetrics), 970 970 ComSafeArrayAsInParam(objects), 1u, 10u) );
Note:
See TracChangeset
for help on using the changeset viewer.