Changeset 94210 in vbox for trunk/src/VBox
- Timestamp:
- Mar 13, 2022 8:25:00 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94209 r94210 237 237 { "guestcontrol", USAGE_S_NEWCMD, HELP_CMD_GUESTCONTROL, handleGuestControl, 0 }, 238 238 #endif 239 { "metrics", USAGE_ METRICS, VBMG_CMD_TODO, handleMetrics, 0 },239 { "metrics", USAGE_S_NEWCMD, HELP_CMD_METRICS, handleMetrics, 0 }, 240 240 { "import", USAGE_S_NEWCMD, HELP_CMD_IMPORT, handleImportAppliance, 0 }, 241 241 { "export", USAGE_S_NEWCMD, HELP_CMD_EXPORT, handleExportAppliance, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94209 r94210 110 110 USAGE_I_RENAMEVMDK, 111 111 USAGE_I_CONVERTTORAW, 112 USAGE_METRICS,113 112 USAGE_I_CONVERTHD, 114 113 USAGE_HOSTONLYIFS, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94209 r94210 544 544 bool fVBoxSDL = false; 545 545 #endif 546 547 RT_NOREF(fSubcommandScope); 546 548 547 549 Assert(enmCommand != USAGE_INVALID); … … 639 641 "\n", SEP); 640 642 641 if (enmCommand == USAGE_METRICS || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s metrics %s list [*|host|<vmname> [<metric_list>]]\n"644 " (comma-separated)\n\n"645 "%s metrics %s setup\n"646 " [--period <seconds>] (default: 1)\n"647 " [--samples <count>] (default: 1)\n"648 " [--list]\n"649 " [*|host|<vmname> [<metric_list>]]\n\n"650 "%s metrics %s query [*|host|<vmname> [<metric_list>]]\n\n"651 "%s metrics %s enable\n"652 " [--list]\n"653 " [*|host|<vmname> [<metric_list>]]\n\n"654 "%s metrics %s disable\n"655 " [--list]\n"656 " [*|host|<vmname> [<metric_list>]]\n\n"657 "%s metrics %s collect\n"658 " [--period <seconds>] (default: 1)\n"659 " [--samples <count>] (default: 1)\n"660 " [--list]\n"661 " [--detach]\n"662 " [*|host|<vmname> [<metric_list>]]\n"663 "\n", SEP, SEP, SEP, SEP, SEP, SEP);664 665 643 #if defined(VBOX_WITH_NAT_SERVICE) 666 644 if (enmCommand == USAGE_NATNETWORK || enmCommand == USAGE_S_ALL) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp
r93115 r94210 178 178 com::SafeIfaceArray<IUnknown> objects; 179 179 180 setCurrentSubcommand(HELP_SCOPE_METRICS_LIST); 181 180 182 rc = parseFilterParameters(argc - 1, &argv[1], aVirtualBox, 181 183 ComSafeArrayAsOutParam(metrics), … … 230 232 int i; 231 233 234 setCurrentSubcommand(HELP_SCOPE_METRICS_SETUP); 235 232 236 for (i = 1; i < argc; i++) 233 237 { … … 287 291 com::SafeArray<BSTR> metrics; 288 292 com::SafeIfaceArray<IUnknown> objects; 293 294 setCurrentSubcommand(HELP_SCOPE_METRICS_QUERY); 289 295 290 296 rc = parseFilterParameters(argc - 1, &argv[1], aVirtualBox, … … 397 403 bool isDetached = false, listMatches = false; 398 404 int i; 405 406 setCurrentSubcommand(HELP_SCOPE_METRICS_COLLECT); 407 399 408 for (i = 1; i < argc; i++) 400 409 { … … 550 559 int i; 551 560 561 setCurrentSubcommand(HELP_SCOPE_METRICS_ENABLE); 562 552 563 for (i = 1; i < argc; i++) 553 564 { … … 592 603 int i; 593 604 605 setCurrentSubcommand(HELP_SCOPE_METRICS_DISABLE); 606 594 607 for (i = 1; i < argc; i++) 595 608 { … … 626 639 /* at least one option: subcommand name */ 627 640 if (a->argc < 1) 628 return errorSyntax( USAGE_METRICS,Metrics::tr("Subcommand missing"));641 return errorSyntax(Metrics::tr("Subcommand missing")); 629 642 630 643 ComPtr<IPerformanceCollector> performanceCollector; … … 645 658 rcExit = handleMetricsDisable(a->argc, a->argv, a->virtualBox, performanceCollector); 646 659 else 647 return errorSyntax( USAGE_METRICS,Metrics::tr("Invalid subcommand '%s'"), a->argv[0]);660 return errorSyntax(Metrics::tr("Invalid subcommand '%s'"), a->argv[0]); 648 661 649 662 return rcExit;
Note:
See TracChangeset
for help on using the changeset viewer.