VirtualBox

Changeset 27998 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 6, 2010 11:39:20 AM (15 years ago)
Author:
vboxsync
Message:

Dropped Guest/Pagefile/Usage/Free

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestImpl.h

    r27996 r27998  
    9090    STDMETHOD(InternalGetStatistics)(ULONG aCpuId, ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle,
    9191                                     ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, ULONG *aMemCache,
    92                                      ULONG *aPageTotal, ULONG *aPageFree);
     92                                     ULONG *aPageTotal);
    9393
    9494    // public methods that are not in IDL
  • trunk/src/VBox/Main/include/Performance.h

    r27942 r27998  
    168168        CollectorGuestHAL(Machine *machine) : cEnabled(0), mMachine(machine), mConsole(NULL), mGuest(NULL), mLastTick(0),
    169169                                              mCpuUser(0), mCpuKernel(0), mCpuIdle(0), mMemTotal(0), mMemFree(0), mMemBalloon(0),
    170                                               mMemCache(0), mPageTotal(0), mPageFree(0) {};
     170                                              mMemCache(0), mPageTotal(0) {};
    171171        ~CollectorGuestHAL();
    172172
     
    187187
    188188        /** Return guest memory information in kb. */
    189         void getGuestMemLoad(ULONG *pulMemTotal, ULONG *pulMemFree, ULONG *pulMemBalloon, ULONG *pulMemCache, ULONG *pulPageTotal, ULONG *pulPageFree)
     189        void getGuestMemLoad(ULONG *pulMemTotal, ULONG *pulMemFree, ULONG *pulMemBalloon, ULONG *pulMemCache, ULONG *pulPageTotal)
    190190        {
    191191            *pulMemTotal   = mMemTotal;
     
    194194            *pulMemCache   = mMemCache;
    195195            *pulPageTotal  = mPageTotal;
    196             *pulPageFree   = mPageFree;
    197196        }
    198197
     
    213212        ULONG                mMemCache;
    214213        ULONG                mPageTotal;
    215         ULONG                mPageFree;
    216214    };
    217215
     
    414412    {
    415413    public:
    416         GuestRamUsage(CollectorGuestHAL *hal, ComPtr<IUnknown> object, SubMetric *total, SubMetric *free, SubMetric *balloon, SubMetric *cache, SubMetric *pagedtotal, SubMetric *pagedfree)
    417         : BaseMetric(hal, "RAM/Usage", object), mTotal(total), mFree(free), mBallooned(balloon), mCache(cache), mPagedTotal(pagedtotal), mPagedFree(pagedfree), mGuestHAL(hal) {};
    418         ~GuestRamUsage() { delete mTotal; delete mFree; delete mBallooned; delete mCache; delete mPagedTotal; delete mPagedFree; };
     414        GuestRamUsage(CollectorGuestHAL *hal, ComPtr<IUnknown> object, SubMetric *total, SubMetric *free, SubMetric *balloon, SubMetric *cache, SubMetric *pagedtotal)
     415        : BaseMetric(hal, "RAM/Usage", object), mTotal(total), mFree(free), mBallooned(balloon), mCache(cache), mPagedTotal(pagedtotal), mGuestHAL(hal) {};
     416        ~GuestRamUsage() { delete mTotal; delete mFree; delete mBallooned; delete mCache; delete mPagedTotal; };
    419417
    420418        void init(ULONG period, ULONG length);
     
    426424        ULONG getScale() { return 1; }
    427425    private:
    428         SubMetric *mTotal, *mFree, *mBallooned, *mCache, *mPagedTotal, *mPagedFree;
     426        SubMetric *mTotal, *mFree, *mBallooned, *mCache, *mPagedTotal;
    429427        CollectorGuestHAL *mGuestHAL;
    430428    };
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