[Lldb-commits] [lldb] r118267 - /lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Jim Ingham jingham at apple.com
Thu Nov 4 16:08:45 PDT 2010


Author: jingham
Date: Thu Nov  4 18:08:45 2010
New Revision: 118267

URL: http://llvm.org/viewvc/llvm-project?rev=118267&view=rev
Log:
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

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=118267&r1=118266&r2=118267&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Thu Nov  4 18:08:45 2010
@@ -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')





More information about the lldb-commits mailing list