Changeset 27998 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Apr 6, 2010 11:39:20 AM (15 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestImpl.h
r27996 r27998 90 90 STDMETHOD(InternalGetStatistics)(ULONG aCpuId, ULONG *aCpuUser, ULONG *aCpuKernel, ULONG *aCpuIdle, 91 91 ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, ULONG *aMemCache, 92 ULONG *aPageTotal , ULONG *aPageFree);92 ULONG *aPageTotal); 93 93 94 94 // public methods that are not in IDL -
trunk/src/VBox/Main/include/Performance.h
r27942 r27998 168 168 CollectorGuestHAL(Machine *machine) : cEnabled(0), mMachine(machine), mConsole(NULL), mGuest(NULL), mLastTick(0), 169 169 mCpuUser(0), mCpuKernel(0), mCpuIdle(0), mMemTotal(0), mMemFree(0), mMemBalloon(0), 170 mMemCache(0), mPageTotal(0) , mPageFree(0){};170 mMemCache(0), mPageTotal(0) {}; 171 171 ~CollectorGuestHAL(); 172 172 … … 187 187 188 188 /** 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) 190 190 { 191 191 *pulMemTotal = mMemTotal; … … 194 194 *pulMemCache = mMemCache; 195 195 *pulPageTotal = mPageTotal; 196 *pulPageFree = mPageFree;197 196 } 198 197 … … 213 212 ULONG mMemCache; 214 213 ULONG mPageTotal; 215 ULONG mPageFree;216 214 }; 217 215 … … 414 412 { 415 413 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), m PagedFree(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; }; 419 417 420 418 void init(ULONG period, ULONG length); … … 426 424 ULONG getScale() { return 1; } 427 425 private: 428 SubMetric *mTotal, *mFree, *mBallooned, *mCache, *mPagedTotal , *mPagedFree;426 SubMetric *mTotal, *mFree, *mBallooned, *mCache, *mPagedTotal; 429 427 CollectorGuestHAL *mGuestHAL; 430 428 };
Note:
See TracChangeset
for help on using the changeset viewer.