Changeset 4602 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 7, 2007 11:21:26 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 24243
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp
r4599 r4602 1285 1285 Log(("Current statistics:\n")); 1286 1286 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_CPU_LOAD_IDLE) 1287 Log(("CPU%d: CPU Load Idle %d%\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_Idle));1287 Log(("CPU%d: CPU Load Idle %-3d%%\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_Idle)); 1288 1288 1289 1289 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_CPU_LOAD_KERNEL) 1290 Log(("CPU%d: CPU Load Kernel %d\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_Kernel));1290 Log(("CPU%d: CPU Load Kernel %-3d%%\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_Kernel)); 1291 1291 1292 1292 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_CPU_LOAD_USER) 1293 Log(("CPU%d: CPU Load User %d\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_User));1293 Log(("CPU%d: CPU Load User %-3d%%\n", pGuestStats->u32CpuId, pGuestStats->u32CpuLoad_User)); 1294 1294 1295 1295 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_THREADS) 1296 Log(("CPU%d: Thread %d\n", pGuestStats->u32CpuId, pGuestStats->u32Threads));1296 Log(("CPU%d: Thread %d\n", pGuestStats->u32CpuId, pGuestStats->u32Threads)); 1297 1297 1298 1298 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PROCESSES) 1299 Log(("CPU%d: Processes %d\n", pGuestStats->u32CpuId, pGuestStats->u32Processes));1299 Log(("CPU%d: Processes %d\n", pGuestStats->u32CpuId, pGuestStats->u32Processes)); 1300 1300 1301 1301 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_HANDLES) 1302 Log(("CPU%d: Handles %d\n", pGuestStats->u32CpuId, pGuestStats->u32Handles));1302 Log(("CPU%d: Handles %d\n", pGuestStats->u32CpuId, pGuestStats->u32Handles)); 1303 1303 1304 1304 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEMORY_LOAD) 1305 Log(("CPU%d: Memory Load %d%\n", pGuestStats->u32CpuId, pGuestStats->u32MemoryLoad));1305 Log(("CPU%d: Memory Load %d%%\n", pGuestStats->u32CpuId, pGuestStats->u32MemoryLoad)); 1306 1306 1307 1307 /* Note that reported values are in pages; upper layers expect them in megabytes */ … … 1311 1311 1312 1312 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PHYS_MEM_TOTAL) 1313 Log(("CPU%d: Total physical memory %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemTotal / (_1M/pGuestStats->u32PageSize)));1313 Log(("CPU%d: Total physical memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemTotal / (_1M/pGuestStats->u32PageSize))); 1314 1314 1315 1315 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PHYS_MEM_AVAIL) 1316 Log(("CPU%d: Free physical memory %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemAvail / (_1M/pGuestStats->u32PageSize)));1316 Log(("CPU%d: Free physical memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemAvail / (_1M/pGuestStats->u32PageSize))); 1317 1317 1318 1318 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PHYS_MEM_BALLOON) 1319 Log(("CPU%d: Memory balloon size %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemBalloon / (_1M/pGuestStats->u32PageSize)));1319 Log(("CPU%d: Memory balloon size %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PhysMemBalloon / (_1M/pGuestStats->u32PageSize))); 1320 1320 1321 1321 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEM_COMMIT_TOTAL) 1322 Log(("CPU%d: Committed memory %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemCommitTotal / (_1M/pGuestStats->u32PageSize)));1322 Log(("CPU%d: Committed memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemCommitTotal / (_1M/pGuestStats->u32PageSize))); 1323 1323 1324 1324 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEM_KERNEL_TOTAL) 1325 Log(("CPU%d: Total kernel memory %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelTotal / (_1M/pGuestStats->u32PageSize)));1325 Log(("CPU%d: Total kernel memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelTotal / (_1M/pGuestStats->u32PageSize))); 1326 1326 1327 1327 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEM_KERNEL_PAGED) 1328 Log(("CPU%d: Paged kernel memory %d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelPaged / (_1M/pGuestStats->u32PageSize)));1328 Log(("CPU%d: Paged kernel memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelPaged / (_1M/pGuestStats->u32PageSize))); 1329 1329 1330 1330 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEM_KERNEL_NONPAGED) 1331 Log(("CPU%d: Nonpaged kernel memory % d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelNonPaged / (_1M/pGuestStats->u32PageSize)));1331 Log(("CPU%d: Nonpaged kernel memory %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemKernelNonPaged / (_1M/pGuestStats->u32PageSize))); 1332 1332 1333 1333 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_MEM_SYSTEM_CACHE) 1334 Log(("CPU%d: System cache size % d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemSystemCache / (_1M/pGuestStats->u32PageSize)));1334 Log(("CPU%d: System cache size %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32MemSystemCache / (_1M/pGuestStats->u32PageSize))); 1335 1335 1336 1336 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PAGE_FILE_SIZE) 1337 Log(("CPU%d: Page file size % d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PageFileSize / (_1M/pGuestStats->u32PageSize)));1337 Log(("CPU%d: Page file size %-4d MB\n", pGuestStats->u32CpuId, pGuestStats->u32PageFileSize / (_1M/pGuestStats->u32PageSize))); 1338 1338 Log(("Statistics end *******************\n")); 1339 1339 #endif
Note:
See TracChangeset
for help on using the changeset viewer.