Changeset 28036 in vbox for trunk/src/VBox/Main/Performance.cpp
- Timestamp:
- Apr 7, 2010 9:47:43 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Performance.cpp
r28012 r28036 168 168 && iTick != mLastTick) 169 169 { 170 ULONG ulMem FreeTotal;170 ULONG ulMemAllocTotal, ulMemFreeTotal, ulMemBalloonTotal; 171 171 172 172 mGuest->InternalGetStatistics(&mCpuUser, &mCpuKernel, &mCpuIdle, 173 173 &mMemTotal, &mMemFree, &mMemBalloon, &mMemCache, 174 &mPageTotal, &ulMem FreeTotal);174 &mPageTotal, &ulMemAllocTotal, &ulMemFreeTotal, &ulMemBalloonTotal); 175 175 176 176 if (mHostHAL) 177 mHostHAL->setMem FreeTotal(ulMemFreeTotal);177 mHostHAL->setMemHypervisorStats(ulMemAllocTotal, ulMemFreeTotal, ulMemBalloonTotal); 178 178 179 179 mLastTick = iTick; … … 303 303 mTotal->put(total); 304 304 mUsed->put(used); 305 mAvailable->put(available + mHAL->getMemFreeTotal()); 306 } 305 mAvailable->put(available); 306 307 } 308 ULONG allocVMM, freeVMM, balloonVMM; 309 310 mHAL->getMemHypervisorStats(&allocVMM, &freeVMM, &balloonVMM); 311 mAllocVMM->put(allocVMM); 312 mFreeVMM->put(freeVMM); 313 mBalloonVMM->put(balloonVMM); 307 314 } 308 315 … … 426 433 427 434 mGuestHAL->getGuestMemLoad(&ulMemTotal, &ulMemFree, &ulMemBalloon, &ulMemCache, &ulPageTotal); 428 mTotal->put(ulMemTotal );429 mFree->put(ulMemFree );430 mBallooned->put(ulMemBalloon );431 mCache->put(ulMemCache );432 mPagedTotal->put(ulPageTotal );435 mTotal->put(ulMemTotal * (_1M / _1K)); /* MB -> KB */ 436 mFree->put(ulMemFree * (_1M / _1K)); 437 mBallooned->put(ulMemBalloon * (_1M / _1K)); 438 mCache->put(ulMemCache * (_1M / _1K)); 439 mPagedTotal->put(ulPageTotal * (_1M / _1K)); 433 440 } 434 441
Note:
See TracChangeset
for help on using the changeset viewer.