VirtualBox

Changeset 11683 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 26, 2008 5:40:41 PM (16 years ago)
Author:
vboxsync
Message:

PerfAPI: Duplicate VM entries fix

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r11583 r11683  
    76267626};
    76277627
    7628 void Machine::unregisterMetrics (PerformanceCollector *aCollector)
    7629 {
    7630     aCollector->unregisterMetricsFor (this);
    7631     aCollector->unregisterBaseMetricsFor (this);
     7628void Machine::unregisterMetrics (PerformanceCollector *aCollector, Machine *aMachine)
     7629{
     7630    aCollector->unregisterMetricsFor (aMachine);
     7631    aCollector->unregisterBaseMetricsFor (aMachine);
    76327632};
    76337633#endif /* VBOX_WITH_RESOURCE_USAGE_API */
     
    79257925
    79267926#ifdef VBOX_WITH_RESOURCE_USAGE_API
    7927     unregisterMetrics (mParent->performanceCollector());
     7927    unregisterMetrics (mParent->performanceCollector(), mPeer);
    79287928#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    79297929
  • trunk/src/VBox/Main/include/MachineImpl.h

    r11357 r11683  
    737737#ifdef VBOX_WITH_RESOURCE_USAGE_API
    738738    void registerMetrics (PerformanceCollector *aCollector, Machine *aMachine, RTPROCESS pid);
    739     void unregisterMetrics (PerformanceCollector *aCollector);
     739    void unregisterMetrics (PerformanceCollector *aCollector, Machine *aMachine);
    740740#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    741741
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