Index: content/common/child_process_messages.h |
=================================================================== |
--- content/common/child_process_messages.h (revision 110669) |
+++ content/common/child_process_messages.h (working copy) |
@@ -5,6 +5,7 @@ |
// Common IPC messages used for child processes. |
// Multiply-included message file, hence no include guard. |
+#include "base/process.h" |
#include "base/shared_memory.h" |
#include "content/common/content_export.h" |
#include "googleurl/src/gurl.h" |
@@ -41,6 +42,16 @@ |
// Sent to all child processes to get trace buffer fullness. |
IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTraceBufferPercentFull) |
+// Tell the child process to enable or disable the profiler status. |
+IPC_MESSAGE_CONTROL1(ChildProcessMsg_SetProfilerStatus, |
+ bool /* profiler status */) |
+ |
+// Sent to all the child processes to send back profiler data (ThreadData in |
+// tracked_objects). |
+IPC_MESSAGE_CONTROL2(ChildProcessMsg_GetChildProfilerData, |
+ int, /* sequence number. */ |
+ std::string /* pickled Value of process type. */) |
+ |
// Sent to child processes to dump their handle table. |
IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) |
@@ -67,6 +78,17 @@ |
IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply, |
float /*trace buffer percent full*/) |
+// Send back profiler data (ThreadData in tracked_objects) as a pickled string. |
+IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData, |
+ int, /* sequence number. */ |
+ std::string /* pickled Value containing profiler data. */) |
jam
2011/11/19 23:36:25
just send the DictionaryValue directly here, and l
ramant (doing other things)
2011/11/25 23:59:48
Done.
|
+ |
+// Check if profiler is enabled in browser process or not. Browser process |
+// responds by sending ChildProcessMsg_SetProfilerStatus message to the child |
+// process (as specified by the child process id). |
+IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_IsProfilerEnabled, |
+ base::ProcessId /* child process id (pid) */ ) |
+ |
// Reply to ChildProcessMsg_DumpHandles when handle table dump is complete. |
IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone) |