VirtualBox

Ignore:
Timestamp:
Mar 26, 2008 9:03:32 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29048
Message:

#ifdef VBOX_WITH_MEM_BALLOONING for memory ballooning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r7556 r7562  
    359359                 "                                            client <pipe>|\n"
    360360                 "                                            <devicename>]\n"
     361#ifdef VBOX_WITH_MEM_BALLOONING
    361362                 "                            [-guestmemoryballoon <balloonsize>]\n"
     363#endif
    362364                 "                            [-gueststatisticsinterval <seconds>]\n"
    363365                 );
     
    21772179        RTPrintf("Guest:\n\n");
    21782180
     2181#ifdef VBOX_WITH_MEM_BALLOONING
    21792182    rc = machine->COMGETTER(MemoryBalloonSize)(&guestVal);
    21802183    if (SUCCEEDED(rc))
     
    21852188            RTPrintf("Configured memory balloon size:      %d MB\n", guestVal);
    21862189    }
    2187 
     2190#endif
    21882191    rc = machine->COMGETTER(StatisticsUpdateInterval)(&guestVal);
    21892192    if (SUCCEEDED(rc))
     
    23012304            }
    23022305
     2306#ifdef VBOX_WITH_MEM_BALLOONING
    23032307            rc = guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &statVal);
    23042308            if (SUCCEEDED(rc))
     
    23092313                    RTPrintf("CPU%d: Memory balloon size    %-4d MB\n", 0, statVal);
    23102314            }
    2311 
     2315#endif
    23122316            rc = guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &statVal);
    23132317            if (SUCCEEDED(rc))
     
    43254329            }
    43264330        }
     4331#ifdef VBOX_WITH_MEM_BALLOONING
    43274332        else if (strncmp(argv[i], "-guestmemoryballoon", 19) == 0)
    43284333        {
     
    43374342            guestMemBalloonSize = uVal;
    43384343        }
     4344#endif
    43394345        else if (strncmp(argv[i], "-gueststatisticsinterval", 24) == 0)
    43404346        {
     
    59245930            }
    59255931        }
     5932#ifdef VBOX_WITH_MEM_BALLOONING
    59265933        else if (strncmp(argv[1], "-guestmemoryballoon", 19) == 0)
    59275934        {
     
    59495956                CHECK_ERROR(guest, COMSETTER(MemoryBalloonSize)(uVal));
    59505957        }
     5958#endif
    59515959        else if (strncmp(argv[1], "-gueststatisticsinterval", 24) == 0)
    59525960        {
     
    59625970            if (vrc != VINF_SUCCESS)
    59635971            {
    5964                 errorArgument("Error parsing guest memory balloon size '%s'", argv[2]);
     5972                errorArgument("Error parsing guest statistics interval '%s'", argv[2]);
    59655973                rc = E_FAIL;
    59665974                break;
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