summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/debugger_agent.h
diff options
context:
space:
mode:
authormnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 05:31:06 +0000
committermnaganov@chromium.org <mnaganov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-08 05:31:06 +0000
commitfde8996d41effb2b1ce7ab3ab2da68060b05d352 (patch)
tree8ec8737fbc808e8827b2ec60291d252d2d995ee4 /webkit/glue/devtools/debugger_agent.h
parent30aaf483c173bf7dec1f46335a7d086aaf1c1ac5 (diff)
downloadchromium_src-fde8996d41effb2b1ce7ab3ab2da68060b05d352.zip
chromium_src-fde8996d41effb2b1ce7ab3ab2da68060b05d352.tar.gz
chromium_src-fde8996d41effb2b1ce7ab3ab2da68060b05d352.tar.bz2
Revert 34040 - DevTools: make possible profiling of scripts doing heavy calculations.
Start / stop profiling commands are now sent using debugger protocol, effectively breaking into script execution. Getting profiler log and active modules is executed on IO thread. BUG=28689 TEST=none Review URL: http://codereview.chromium.org/460018 TBR=mnaganov@chromium.org interactive_ui_tests all failed Review URL: http://codereview.chromium.org/467043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/debugger_agent.h')
-rw-r--r--webkit/glue/devtools/debugger_agent.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/webkit/glue/devtools/debugger_agent.h b/webkit/glue/devtools/debugger_agent.h
index 6ba1a84..9549447 100644
--- a/webkit/glue/devtools/debugger_agent.h
+++ b/webkit/glue/devtools/debugger_agent.h
@@ -9,7 +9,19 @@
#define DEBUGGER_AGENT_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3) \
/* Requests global context id of the inspected tab. */ \
- METHOD0(GetContextId)
+ METHOD0(GetContextId) \
+ \
+ /* Starts profiling. */ \
+ METHOD1(StartProfiling, int /* flags */) \
+ \
+ /* Stops profiling. */ \
+ METHOD1(StopProfiling, int /* flags */) \
+ \
+ /* Requests current profiler state. */ \
+ METHOD0(GetActiveProfilerModules) \
+ \
+ /* Retrieves next portion of profiler log. */ \
+ METHOD0(GetNextLogLines)
DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT)
@@ -17,7 +29,13 @@ DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT)
METHOD1(DebuggerOutput, String /* output text */) \
\
/* Pushes debugger context id into the client. */ \
- METHOD1(SetContextId, int /* context id */)
+ METHOD1(SetContextId, int /* context id */) \
+ \
+ /* Response to GetActiveProfilerModules. */ \
+ METHOD1(DidGetActiveProfilerModules, int /* flags */) \
+ \
+ /* Response to GetNextLogLines. */ \
+ METHOD1(DidGetNextLogLines, String /* log */)
DEFINE_RPC_CLASS(DebuggerAgentDelegate, DEBUGGER_AGENT_DELEGATE_STRUCT)