Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(934)

Unified Diff: content/common/child_process_messages.h

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/child_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_messages.h
===================================================================
--- content/common/child_process_messages.h (revision 112492)
+++ content/common/child_process_messages.h (working copy)
@@ -6,6 +6,7 @@
// Multiply-included message file, hence no include guard.
#include "base/shared_memory.h"
+#include "base/values.h"
#include "content/common/content_export.h"
#include "googleurl/src/gurl.h"
#include "ipc/ipc_message_macros.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 */)
+
+// Send 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,11 @@
IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TraceBufferPercentFullReply,
float /*trace buffer percent full*/)
+// Send back profiler data (ThreadData in tracked_objects).
+IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_ChildProfilerData,
+ int, /* sequence number. */
+ DictionaryValue /* profiler data. */)
+
// Reply to ChildProcessMsg_DumpHandles when handle table dump is complete.
IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_DumpHandlesDone)
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698