Changeset 26371 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
- Timestamp:
- Feb 9, 2010 1:57:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r26368 r26371 831 831 832 832 if (guest->GetStatistic(0, GuestStatisticType_SampleNumber, &StatVal) == S_OK) 833 printf("Statistics sample: %d\n", StatVal);833 RTPrintf("Statistics sample: %u\n", StatVal); 834 834 if (guest->GetStatistic(0, GuestStatisticType_CPULoad_Idle, &StatVal) == S_OK) 835 printf("CPU load idle: %d%%\n", StatVal);835 RTPrintf("CPU load idle: %u%%\n", StatVal); 836 836 if (guest->GetStatistic(0, GuestStatisticType_CPULoad_Kernel, &StatVal) == S_OK) 837 printf("CPU load kernel: %d%%\n", StatVal);837 RTPrintf("CPU load kernel: %u%%\n", StatVal); 838 838 if (guest->GetStatistic(0, GuestStatisticType_CPULoad_User, &StatVal) == S_OK) 839 printf("CPU load user: %d%%\n", StatVal);839 RTPrintf("CPU load user: %u%%\n", StatVal); 840 840 if (guest->GetStatistic(0, GuestStatisticType_Threads, &StatVal) == S_OK) 841 printf("Nr. of threads: %d\n", StatVal);841 RTPrintf("Nr. of threads: %u\n", StatVal); 842 842 if (guest->GetStatistic(0, GuestStatisticType_Processes, &StatVal) == S_OK) 843 printf("Nr. of processes: %d\n", StatVal);843 RTPrintf("Nr. of processes: %u\n", StatVal); 844 844 if (guest->GetStatistic(0, GuestStatisticType_Handles, &StatVal) == S_OK) 845 printf("Nr. of handles: %d\n", StatVal);845 RTPrintf("Nr. of handles: %u\n", StatVal); 846 846 if (guest->GetStatistic(0, GuestStatisticType_MemoryLoad, &StatVal) == S_OK) 847 printf("Memory load: %d\n", StatVal);847 RTPrintf("Memory load: %u\n", StatVal); 848 848 if (guest->GetStatistic(0, GuestStatisticType_PhysMemTotal, &StatVal) == S_OK) 849 printf("Total phys. memory: %dMB\n", StatVal);849 RTPrintf("Total phys. memory: %uMB\n", StatVal); 850 850 if (guest->GetStatistic(0, GuestStatisticType_PhysMemAvailable, &StatVal) == S_OK) 851 printf("Available phys. memory: %dMB\n", StatVal);851 RTPrintf("Available phys. memory: %uMB\n", StatVal); 852 852 if (guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &StatVal) == S_OK) 853 printf("Balloon size: %dMB\n", StatVal);853 RTPrintf("Balloon size: %uMB\n", StatVal); 854 854 if (guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &StatVal) == S_OK) 855 printf("Total memory commit: %dMB\n", StatVal);855 RTPrintf("Total memory commit: %uMB\n", StatVal); 856 856 if (guest->GetStatistic(0, GuestStatisticType_MemKernelTotal, &StatVal) == S_OK) 857 printf("Kernel memory: %dMB\n", StatVal);857 RTPrintf("Kernel memory: %uMB\n", StatVal); 858 858 if (guest->GetStatistic(0, GuestStatisticType_MemKernelPaged, &StatVal) == S_OK) 859 printf("Paged kernel mem: %dMB\n", StatVal);859 RTPrintf("Paged kernel mem: %uMB\n", StatVal); 860 860 if (guest->GetStatistic(0, GuestStatisticType_MemKernelNonpaged, &StatVal) == S_OK) 861 printf("Locked kernel mem: %dMB\n", StatVal);861 RTPrintf("Locked kernel mem: %uMB\n", StatVal); 862 862 if (guest->GetStatistic(0, GuestStatisticType_MemSystemCache, &StatVal) == S_OK) 863 printf("System cache: %dMB\n", StatVal);863 RTPrintf("System cache: %uMB\n", StatVal); 864 864 if (guest->GetStatistic(0, GuestStatisticType_PageFileSize, &StatVal) == S_OK) 865 printf("Page file size: %dMB\n", StatVal);865 RTPrintf("Page file size: %uMB\n", StatVal); 866 866 } 867 867 }
Note:
See TracChangeset
for help on using the changeset viewer.