From 095bef4f9b7df6a5eab50fe291bfd6843ed15b1a Mon Sep 17 00:00:00 2001 From: twanvl Date: Thu, 11 Dec 2008 17:37:40 +0000 Subject: [PATCH] option to :profile command, to specify how detailed profile output should be git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1248 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/cli/cli_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {