VirtualBox

Ignore:
Timestamp:
Apr 7, 2010 9:47:43 AM (15 years ago)
Author:
vboxsync
Message:

More metrics changes

File:
1 edited

Legend:

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

    r28012 r28036  
    168168        &&  iTick != mLastTick)
    169169    {
    170         ULONG ulMemFreeTotal;
     170        ULONG ulMemAllocTotal, ulMemFreeTotal, ulMemBalloonTotal;
    171171
    172172        mGuest->InternalGetStatistics(&mCpuUser, &mCpuKernel, &mCpuIdle,
    173173                                      &mMemTotal, &mMemFree, &mMemBalloon, &mMemCache,
    174                                       &mPageTotal, &ulMemFreeTotal);
     174                                      &mPageTotal, &ulMemAllocTotal, &ulMemFreeTotal, &ulMemBalloonTotal);
    175175
    176176        if (mHostHAL)
    177             mHostHAL->setMemFreeTotal(ulMemFreeTotal);
     177            mHostHAL->setMemHypervisorStats(ulMemAllocTotal, ulMemFreeTotal, ulMemBalloonTotal);
    178178
    179179        mLastTick = iTick;
     
    303303        mTotal->put(total);
    304304        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);
    307314}
    308315
     
    426433
    427434    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));
    433440}
    434441
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