Changeset 36070 in vbox
- Timestamp:
- Feb 24, 2011 2:13:20 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70191
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/Performance.cpp
r35971 r36070 347 347 void HostRamVmm::preCollect(CollectorHints& /* hints */, uint64_t /* iTick */) 348 348 { 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 */); 350 357 } 351 358
Note:
See TracChangeset
for help on using the changeset viewer.