VirtualBox

Changeset 4604 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 7, 2007 11:34:50 AM (17 years ago)
Author:
vboxsync
Message:

Corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxService/VBoxStatistics.cpp

    r4597 r4604  
    147147    req.guestStats.u32PageSize          = systemInfo.dwPageSize;
    148148    req.guestStats.u32PhysMemTotal      = (uint32_t)(memStatus.ullTotalPhys / systemInfo.dwPageSize);
     149    dprintf(("memStatus.ullTotalPhys %VX64\n", memStatus.ullTotalPhys));
    149150    req.guestStats.u32PhysMemAvail      = (uint32_t)(memStatus.ullAvailPhys / systemInfo.dwPageSize);
    150     req.guestStats.u32PageFileSize      = (uint32_t)(memStatus.ullTotalPageFile / systemInfo.dwPageSize);
     151    /* The current size of the committed memory limit, in bytes. This is physical memory plus the size of the page file, minus a small overhead. */
     152    req.guestStats.u32PageFileSize      = (uint32_t)(memStatus.ullTotalPageFile / systemInfo.dwPageSize) - req.guestStats.u32PhysMemTotal;
    151153    req.guestStats.u32MemoryLoad        = memStatus.dwMemoryLoad;
    152154    req.guestStats.u32PhysMemBalloon    = VBoxMemBalloonQuerySize() * (_1M/systemInfo.dwPageSize);    /* was in megabytes */
     
    159161        if (gCtx.pfnGetPerformanceInfo(&perfInfo, sizeof(perfInfo)))
    160162        {
     163            dprintf(("PhysicalTotal     %VX64\n", perfInfo.PhysicalTotal));
     164            dprintf(("PhysicalAvailable %VX64\n", perfInfo.PhysicalAvailable));
    161165            req.guestStats.u32Processes         = perfInfo.ProcessCount;
    162166            req.guestStats.u32Threads           = perfInfo.ThreadCount;
     167            req.guestStats.u32Handles           = perfInfo.HandleCount;
    163168            req.guestStats.u32MemCommitTotal    = perfInfo.CommitTotal;     /* already in pages */
    164169            req.guestStats.u32MemKernelTotal    = perfInfo.KernelTotal;     /* already in pages */
     
    166171            req.guestStats.u32MemKernelNonPaged = perfInfo.KernelNonpaged;  /* already in pages */
    167172            req.guestStats.u32MemSystemCache    = perfInfo.SystemCache;     /* already in pages */
    168             req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_PROCESSES | VBOX_GUEST_STAT_THREADS | VBOX_GUEST_STAT_MEM_COMMIT_TOTAL | VBOX_GUEST_STAT_MEM_KERNEL_TOTAL | VBOX_GUEST_STAT_MEM_KERNEL_PAGED | VBOX_GUEST_STAT_MEM_KERNEL_NONPAGED | VBOX_GUEST_STAT_MEM_SYSTEM_CACHE;
     173            req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_PROCESSES | VBOX_GUEST_STAT_THREADS | VBOX_GUEST_STAT_HANDLES | VBOX_GUEST_STAT_MEM_COMMIT_TOTAL | VBOX_GUEST_STAT_MEM_KERNEL_TOTAL | VBOX_GUEST_STAT_MEM_KERNEL_PAGED | VBOX_GUEST_STAT_MEM_KERNEL_NONPAGED | VBOX_GUEST_STAT_MEM_SYSTEM_CACHE;
    169174        }
    170175        else
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