VirtualBox

Changeset 36070 in vbox


Ignore:
Timestamp:
Feb 24, 2011 2:13:20 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70191
Message:

Metrics: ugly fix for VMM metrics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/Performance.cpp

    r35971 r36070  
    347347void HostRamVmm::preCollect(CollectorHints& /* hints */, uint64_t /* iTick */)
    348348{
    349     /* Guest RAM metrics do not use hints */
     349    /*
     350     * This is an ugly ugly hack to force VMM metrics to 0s if no VM is
     351     * running. The reason it should work is that the VMM stats are
     352     * stored in CollectorHAL in preCollect methods of guest base metrics
     353     * which are always added after HostRamVmm. So each pass of collector
     354     * first clears the metrics then gets new values.
     355     */
     356    mHAL->setMemHypervisorStats(0 /* ulMemAllocTotal */, 0 /* ulMemFreeTotal */, 0 /* ulMemBalloonTotal */, 0 /* ulMemSharedTotal */);
    350357}
    351358
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