diff --git a/src/cli/cli_main.cpp b/src/cli/cli_main.cpp index 1404f66a..7243e95f 100644 --- a/src/cli/cli_main.cpp +++ b/src/cli/cli_main.cpp @@ -167,7 +167,9 @@ void CLISetInterface::handleCommand(const String& command) { if (arg == _("full")) { showProfilingStats(profile_root); } else { - showProfilingStats(profile_aggregated()); + long level = 1; + arg.ToLong(&level); + showProfilingStats(profile_aggregated(level)); } #endif } else {