Changeset 11481 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 19, 2008 12:13:53 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r11467 r11481 2739 2739 pm::SubMetric *cpuLoadKernel = new pm::SubMetric ("CPU/Load/Kernel"); 2740 2740 pm::SubMetric *cpuLoadIdle = new pm::SubMetric ("CPU/Load/Idle"); 2741 pm::SubMetric *cpuMhzSM = new pm::SubMetric ("CPU/MH Z");2741 pm::SubMetric *cpuMhzSM = new pm::SubMetric ("CPU/MHz"); 2742 2742 pm::SubMetric *ramUsageTotal = new pm::SubMetric ("RAM/Usage/Total"); 2743 2743 pm::SubMetric *ramUsageUsed = new pm::SubMetric ("RAM/Usage/Used"); -
trunk/src/VBox/Main/Performance.cpp
r11391 r11481 272 272 RTMemFree(mData); 273 273 mLength = length; 274 mData = (ULONG *)RTMemAllocZ(length * sizeof(ULONG)); 274 if (mLength) 275 mData = (ULONG *)RTMemAllocZ(length * sizeof(ULONG)); 276 else 277 mData = NULL; 275 278 mWrapped = false; 276 279 mEnd = 0; -
trunk/src/VBox/Main/PerformanceImpl.cpp
r11391 r11481 266 266 " count to %u for %s\n", aPeriod, aCount, (*it)->getName())); 267 267 (*it)->init(aPeriod, aCount); 268 LogFlow (("PerformanceCollector::SetupMetrics() enabling %s\n", 269 aPeriod, aCount, (*it)->getName())); 270 (*it)->enable(); 268 if (aPeriod == 0 || aCount == 0) 269 { 270 LogFlow (("PerformanceCollector::SetupMetrics() disabling %s\n", 271 (*it)->getName())); 272 (*it)->disable(); 273 } 274 else 275 { 276 LogFlow (("PerformanceCollector::SetupMetrics() enabling %s\n", 277 (*it)->getName())); 278 (*it)->enable(); 279 } 271 280 } 272 281
Note:
See TracChangeset
for help on using the changeset viewer.