Changeset 7562 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 26, 2008 9:03:32 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29048
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r7556 r7562 359 359 " client <pipe>|\n" 360 360 " <devicename>]\n" 361 #ifdef VBOX_WITH_MEM_BALLOONING 361 362 " [-guestmemoryballoon <balloonsize>]\n" 363 #endif 362 364 " [-gueststatisticsinterval <seconds>]\n" 363 365 ); … … 2177 2179 RTPrintf("Guest:\n\n"); 2178 2180 2181 #ifdef VBOX_WITH_MEM_BALLOONING 2179 2182 rc = machine->COMGETTER(MemoryBalloonSize)(&guestVal); 2180 2183 if (SUCCEEDED(rc)) … … 2185 2188 RTPrintf("Configured memory balloon size: %d MB\n", guestVal); 2186 2189 } 2187 2190 #endif 2188 2191 rc = machine->COMGETTER(StatisticsUpdateInterval)(&guestVal); 2189 2192 if (SUCCEEDED(rc)) … … 2301 2304 } 2302 2305 2306 #ifdef VBOX_WITH_MEM_BALLOONING 2303 2307 rc = guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &statVal); 2304 2308 if (SUCCEEDED(rc)) … … 2309 2313 RTPrintf("CPU%d: Memory balloon size %-4d MB\n", 0, statVal); 2310 2314 } 2311 2315 #endif 2312 2316 rc = guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &statVal); 2313 2317 if (SUCCEEDED(rc)) … … 4325 4329 } 4326 4330 } 4331 #ifdef VBOX_WITH_MEM_BALLOONING 4327 4332 else if (strncmp(argv[i], "-guestmemoryballoon", 19) == 0) 4328 4333 { … … 4337 4342 guestMemBalloonSize = uVal; 4338 4343 } 4344 #endif 4339 4345 else if (strncmp(argv[i], "-gueststatisticsinterval", 24) == 0) 4340 4346 { … … 5924 5930 } 5925 5931 } 5932 #ifdef VBOX_WITH_MEM_BALLOONING 5926 5933 else if (strncmp(argv[1], "-guestmemoryballoon", 19) == 0) 5927 5934 { … … 5949 5956 CHECK_ERROR(guest, COMSETTER(MemoryBalloonSize)(uVal)); 5950 5957 } 5958 #endif 5951 5959 else if (strncmp(argv[1], "-gueststatisticsinterval", 24) == 0) 5952 5960 { … … 5962 5970 if (vrc != VINF_SUCCESS) 5963 5971 { 5964 errorArgument("Error parsing guest memory balloon size'%s'", argv[2]);5972 errorArgument("Error parsing guest statistics interval '%s'", argv[2]); 5965 5973 rc = E_FAIL; 5966 5974 break;
Note:
See TracChangeset
for help on using the changeset viewer.