Added a top level Timer to the interpreter execute command. Also added an option to pass the depth to "log timer enable". That allows you to time just command execution with:
log timer enable 1
<command>
log timer dump
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118267 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandInterpreter.cpp b/source/Interpreter/CommandInterpreter.cpp
index 6c90854..5a3ad18 100644
--- a/source/Interpreter/CommandInterpreter.cpp
+++ b/source/Interpreter/CommandInterpreter.cpp
@@ -510,6 +510,8 @@
// result.AppendMessageWithFormat ("Processing command: %s\n", command_line);
// }
+ Timer scoped_timer (__PRETTY_FUNCTION__, "Handling command: %s.", command_line);
+
m_debugger.UpdateExecutionContext (override_context);
if (command_line == NULL || command_line[0] == '\0')