diff options
author | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 09:57:29 +0000 |
---|---|---|
committer | mnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 09:57:29 +0000 |
commit | 81c78ac1f4407d0a9b1fa1dbb41916ababa225c7 (patch) | |
tree | cedf04cdde1afa84d9617ba1faffcbf7198c200d /webkit/glue/devtools/debugger_agent.h | |
parent | 95575b9f2bfff83e75889f038e6c03fb7ff13471 (diff) | |
download | chromium_src-81c78ac1f4407d0a9b1fa1dbb41916ababa225c7.zip chromium_src-81c78ac1f4407d0a9b1fa1dbb41916ababa225c7.tar.gz chromium_src-81c78ac1f4407d0a9b1fa1dbb41916ababa225c7.tar.bz2 |
Add initial version of DevTools Profiler.
To activate it, run Chromium with the following
additional js-flags: "--prof --noprof_auto --logfile=*"
Review URL: http://codereview.chromium.org/115299
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/debugger_agent.h')
-rw-r--r-- | webkit/glue/devtools/debugger_agent.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/webkit/glue/devtools/debugger_agent.h b/webkit/glue/devtools/debugger_agent.h index 45dc899..b310fb3 100644 --- a/webkit/glue/devtools/debugger_agent.h +++ b/webkit/glue/devtools/debugger_agent.h @@ -5,22 +5,37 @@ #ifndef WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ #define WEBKIT_GLUE_DEVTOOLS_DEBUGGER_AGENT_H_ +#include <string> + #include "webkit/glue/devtools/devtools_rpc.h" #define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ METHOD4) \ /* Stops v8 execution as soon as it gets control. */ \ METHOD0(DebugBreak) \ + \ /* Requests global context id of the inspected tab. */ \ - METHOD0(GetContextId) + METHOD0(GetContextId) \ + \ + /* Starts profiling (samples collection). */ \ + METHOD0(StartProfiling) \ + \ + /* Stops profiling (samples collection). */ \ + METHOD0(StopProfiling) \ + \ + /* Retrieves a portion of profiler log. */ \ + METHOD1(GetLogLines, int /* position */) DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) #define DEBUGGER_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ METHOD4) \ METHOD1(DebuggerOutput, std::string /* output text */) \ + \ /* Response to GetContextId. */ \ - METHOD1(DidGetContextId, int /* context id */) + METHOD1(DidGetContextId, int /* context id */) \ + \ + METHOD2(DidGetLogLines, std::string /* log */, int /* new_position */) DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT) |