VirtualBox

Changeset 27049 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 4, 2010 5:36:41 PM (15 years ago)
Author:
vboxsync
Message:

release stats for the number of chunks in the guest balloon

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r27023 r27049  
    13881388            {
    13891389                if (memBalloonChange->fInflate)
     1390                {
    13901391                    pRequestHeader->rc = PGMR3PhysFreeRamPages(PDMDevHlpGetVM(pDevIns), memBalloonChange->cPages, memBalloonChange->aPhysPage);
     1392                    STAM_REL_U32_INC(&pThis->StatMemBalloonChunks);
     1393                }
    13911394                else
     1395                {
    13921396                    pRequestHeader->rc = VINF_SUCCESS;      /* deflating the balloon doesn't require any action; when the reacquired memory is touched, it will be paged back in. */
     1397                    STAM_REL_U32_DEC(&pThis->StatMemBalloonChunks);
     1398                }
    13931399            }
    13941400            break;
     
    23592365        if (uVersion >= 10)
    23602366            pThis->pDrv->pfnUpdatePointerShape(pThis->pDrv,
    2361                                                /*fVisible=*/pThis->fHostCursorRequested,
     2367                                               /*fVisible=*/!!pThis->fHostCursorRequested,
    23622368                                               /*fAlpha=*/false,
    23632369                                               /*xHot=*/0, /*yHot=*/0,
     
    27272733    /* The GUI checks whether this changes in this version of VirtualBox. */
    27282734    pThis->mouseCapabilities |= VMMDEV_MOUSE_HOST_RECHECKS_NEEDS_HOST_CURSOR;
     2735
     2736    PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMemBalloonChunks, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Memory balloon size", "/Devices/VMMDev/BalloonChunks");
    27292737
    27302738    return rc;
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r25985 r27049  
    207207    /** Package id of the CPU to changhe */
    208208    uint32_t             idCpuPackage;
     209
     210    uint32_t             StatMemBalloonChunks;
    209211} VMMDevState;
    210212AssertCompileMemberAlignment(VMMDevState, CritSect, 8);
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