diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 17:16:19 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-19 17:16:19 +0000 |
commit | c8867ff8d91f5be838ddb179bd08261807cc8cb2 (patch) | |
tree | ab0a2efb19bcb8a30a7b6dcbee1d743aa8f22a83 /content/common/child_process_messages.h | |
parent | acf25bc074f81f41b0373c5c8ebe5ac599b2dcf0 (diff) | |
download | chromium_src-c8867ff8d91f5be838ddb179bd08261807cc8cb2.zip chromium_src-c8867ff8d91f5be838ddb179bd08261807cc8cb2.tar.gz chromium_src-c8867ff8d91f5be838ddb179bd08261807cc8cb2.tar.bz2 |
Updated event trace code to stop on buffer full condition for any child process. Added more trace events to show expensive blocking IPCs in renderer process.
BUG=79510
TEST=start trace in about:gpu; open some WebGL windows; when trace Buffer usage reaches 100%, verify that the trace is ended
Review URL: http://codereview.chromium.org/6870020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/child_process_messages.h')
-rw-r--r-- | content/common/child_process_messages.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h index 6850da2..1d64bf6 100644 --- a/content/common/child_process_messages.h +++ b/content/common/child_process_messages.h @@ -31,6 +31,9 @@ IPC_MESSAGE_CONTROL0(ChildProcessMsg_BeginTracing) // Sent to all child processes to disable trace event recording. IPC_MESSAGE_CONTROL0(ChildProcessMsg_EndTracing) +// Sent to all child processes to get trace buffer fullness. +IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) + //////////////////////////////////////////////////////////////////////////////// // Messages sent from the child process to the browser. @@ -39,10 +42,17 @@ IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_EndTracingAck) +// Sent if the trace buffer becomes full. +IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_TraceBufferFull) + // Child processes send trace data back in JSON chunks. IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceDataCollected, std::string /*json trace data*/) +// Reply to ChildProcessMsg_GetTraceBufferPercentFull. +IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, + float /*trace buffer percent full*/) + // NaCl's 64 bit Windows build only links with a bare-minimum number of // libraries, and GURL isn't one of them. #if !defined(NACL_WIN64) |