VirtualBox

Changeset 28012 in vbox for trunk/src/VBox/Main/HostImpl.cpp


Ignore:
Timestamp:
Apr 6, 2010 2:52:25 PM (15 years ago)
Author:
vboxsync
Message:

Use PGMR3QueryFreeMemory instead

File:
1 edited

Legend:

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

    r28004 r28012  
    24112411    pm::SubMetric *ramUsageFree  = new pm::SubMetric("RAM/Usage/Free",
    24122412        "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
    24152414    /* Create and register base metrics */
    24162415    IUnknown *objptr;
     
    24232422    aCollector->registerBaseMetric (cpuMhz);
    24242423    pm::BaseMetric *ramUsage = new pm::HostRamUsage(hal, objptr, ramUsageTotal, ramUsageUsed,
    2425                                            ramUsageFree, ramUsageBalloon);
     2424                                           ramUsageFree);
    24262425    aCollector->registerBaseMetric (ramUsage);
    24272426
     
    24812480    aCollector->registerMetric(new pm::Metric(ramUsage, ramUsageFree,
    24822481                                              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()));
    24912482};
    24922483
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