Changeset 28012 in vbox for trunk/src/VBox/Main/HostImpl.cpp
- Timestamp:
- Apr 6, 2010 2:52:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r28004 r28012 2411 2411 pm::SubMetric *ramUsageFree = new pm::SubMetric("RAM/Usage/Free", 2412 2412 "Physical memory currently available to applications."); 2413 pm::SubMetric *ramUsageBalloon = new pm::SubMetric("RAM/Usage/Ballooned", 2414 "Physical memory currently available from guest balloons."); 2413 2415 2414 /* Create and register base metrics */ 2416 2415 IUnknown *objptr; … … 2423 2422 aCollector->registerBaseMetric (cpuMhz); 2424 2423 pm::BaseMetric *ramUsage = new pm::HostRamUsage(hal, objptr, ramUsageTotal, ramUsageUsed, 2425 ramUsageFree , ramUsageBalloon);2424 ramUsageFree); 2426 2425 aCollector->registerBaseMetric (ramUsage); 2427 2426 … … 2481 2480 aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageFree, 2482 2481 new pm::AggregateMax())); 2483 2484 aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageBalloon, 0));2485 aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageBalloon,2486 new pm::AggregateAvg()));2487 aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageBalloon,2488 new pm::AggregateMin()));2489 aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageBalloon,2490 new pm::AggregateMax()));2491 2482 }; 2492 2483
Note:
See TracChangeset
for help on using the changeset viewer.