Changeset 4604 in vbox for trunk/src/VBox
- Timestamp:
- Sep 7, 2007 11:34:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxService/VBoxStatistics.cpp
r4597 r4604 147 147 req.guestStats.u32PageSize = systemInfo.dwPageSize; 148 148 req.guestStats.u32PhysMemTotal = (uint32_t)(memStatus.ullTotalPhys / systemInfo.dwPageSize); 149 dprintf(("memStatus.ullTotalPhys %VX64\n", memStatus.ullTotalPhys)); 149 150 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; 151 153 req.guestStats.u32MemoryLoad = memStatus.dwMemoryLoad; 152 154 req.guestStats.u32PhysMemBalloon = VBoxMemBalloonQuerySize() * (_1M/systemInfo.dwPageSize); /* was in megabytes */ … … 159 161 if (gCtx.pfnGetPerformanceInfo(&perfInfo, sizeof(perfInfo))) 160 162 { 163 dprintf(("PhysicalTotal %VX64\n", perfInfo.PhysicalTotal)); 164 dprintf(("PhysicalAvailable %VX64\n", perfInfo.PhysicalAvailable)); 161 165 req.guestStats.u32Processes = perfInfo.ProcessCount; 162 166 req.guestStats.u32Threads = perfInfo.ThreadCount; 167 req.guestStats.u32Handles = perfInfo.HandleCount; 163 168 req.guestStats.u32MemCommitTotal = perfInfo.CommitTotal; /* already in pages */ 164 169 req.guestStats.u32MemKernelTotal = perfInfo.KernelTotal; /* already in pages */ … … 166 171 req.guestStats.u32MemKernelNonPaged = perfInfo.KernelNonpaged; /* already in pages */ 167 172 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; 169 174 } 170 175 else
Note:
See TracChangeset
for help on using the changeset viewer.