third_party/virtualbox/src/VBox/Main/src-server/MachineImpl.cpp
/**
 *  Passes collected guest statistics to performance collector object
 */
Passes collected guest statistics to performance collector object
Passes collected guest statistics to performance collector object
HRESULT SessionMachine::reportVmStatistics(ULONG aValidStats, ULONG aCpuUser,
                                           ULONG aCpuKernel, ULONG aCpuIdle,
                                           ULONG aMemTotal, ULONG aMemFree,
                                           ULONG aMemBalloon, ULONG aMemShared,
                                           ULONG aMemCache, ULONG aPageTotal,
                                           ULONG aAllocVMM, ULONG aFreeVMM,
                                           ULONG aBalloonedVMM, ULONG aSharedVMM,
                                           ULONG aVmNetRx, ULONG aVmNetTx)
{
#ifdef VBOX_WITH_RESOURCE_USAGE_API
    if (mCollectorGuest)
        mCollectorGuest->updateStats(aValidStats, aCpuUser, aCpuKernel, aCpuIdle,
                                     aMemTotal, aMemFree, aMemBalloon, aMemShared,
                                     aMemCache, aPageTotal, aAllocVMM, aFreeVMM,
                                     aBalloonedVMM, aSharedVMM, aVmNetRx, aVmNetTx);
    return S_OK;
#else
    NOREF(aValidStats);
    NOREF(aCpuUser);
    NOREF(aCpuKernel);
    NOREF(aCpuIdle);
    NOREF(aMemTotal);
    NOREF(aMemFree);
    NOREF(aMemBalloon);
    NOREF(aMemShared);
    NOREF(aMemCache);
    NOREF(aPageTotal);
    NOREF(aAllocVMM);
    NOREF(aFreeVMM);
    NOREF(aBalloonedVMM);
    NOREF(aSharedVMM);
    NOREF(aVmNetRx);
    NOREF(aVmNetTx);
    return E_NOTIMPL;
#endif
}
HRESULT SessionMachine :: reportVmStatistics ( ULONG aValidStats , ULONG aCpuUser , ULONG aCpuKernel , ULONG aCpuIdle , ULONG aMemTotal , ULONG aMemFree , ULONG aMemBalloon , ULONG aMemShared , ULONG aMemCache , ULONG aPageTotal , ULONG aAllocVMM , ULONG aFreeVMM , ULONG aBalloonedVMM , ULONG aSharedVMM , ULONG aVmNetRx , ULONG aVmNetTx ) { #ifdef VBOX_WITH_RESOURCE_USAGE_API if ( mCollectorGuest ) mCollectorGuest -> updateStats ( aValidStats , aCpuUser , aCpuKernel , aCpuIdle , aMemTotal , aMemFree , aMemBalloon , aMemShared , aMemCache , aPageTotal , aAllocVMM , aFreeVMM , aBalloonedVMM , aSharedVMM , aVmNetRx , aVmNetTx ) ; return S_OK ; #else NOREF ( aValidStats ) ; NOREF ( aCpuUser ) ; NOREF ( aCpuKernel ) ; NOREF ( aCpuIdle ) ; NOREF ( aMemTotal ) ; NOREF ( aMemFree ) ; NOREF ( aMemBalloon ) ; NOREF ( aMemShared ) ; NOREF ( aMemCache ) ; NOREF ( aPageTotal ) ; NOREF ( aAllocVMM ) ; NOREF ( aFreeVMM ) ; NOREF ( aBalloonedVMM ) ; NOREF ( aSharedVMM ) ; NOREF ( aVmNetRx ) ; NOREF ( aVmNetTx ) ; return E_NOTIMPL ; #endif }
Passes collected guest statistics to performance collector object
Passes collected guest statistics to performance collector object