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

Side by Side Diff: content/common/child_process_messages.h

Issue 10041017: Show gpu process stats in about:tcmalloc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nits, call OnStatsForChildProcess directly from IO thread instead of posting to UI Created 8 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/tcmalloc_internals_request_job.cc ('k') | content/common/child_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Common IPC messages used for child processes. 5 // Common IPC messages used for child processes.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/tracked_objects.h" 9 #include "base/tracked_objects.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 tracked_objects::ThreadData::Status /* profiler status */) 85 tracked_objects::ThreadData::Status /* profiler status */)
86 86
87 // Send to all the child processes to send back profiler data (ThreadData in 87 // Send to all the child processes to send back profiler data (ThreadData in
88 // tracked_objects). 88 // tracked_objects).
89 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData, 89 IPC_MESSAGE_CONTROL1(ChildProcessMsg_GetChildProfilerData,
90 int /* sequence number */) 90 int /* sequence number */)
91 91
92 // Sent to child processes to dump their handle table. 92 // Sent to child processes to dump their handle table.
93 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles) 93 IPC_MESSAGE_CONTROL0(ChildProcessMsg_DumpHandles)
94 94
95 #if defined(USE_TCMALLOC)
96 // Sent to child process to request tcmalloc stats.
97 IPC_MESSAGE_CONTROL0(ChildProcessMsg_GetTcmallocStats)
98 #endif
99
95 //////////////////////////////////////////////////////////////////////////////// 100 ////////////////////////////////////////////////////////////////////////////////
96 // Messages sent from the child process to the browser. 101 // Messages sent from the child process to the browser.
97 102
98 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest) 103 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ShutdownRequest)
99 104
100 // Notify the browser that this child process supports tracing. 105 // Notify the browser that this child process supports tracing.
101 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ChildSupportsTracing) 106 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ChildSupportsTracing)
102 107
103 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false). 108 // Reply from child processes acking ChildProcessMsg_TraceChangeStatus(false).
104 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck, 109 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_EndTracingAck,
(...skipping 26 matching lines...) Expand all
131 136
132 // Release the cached font 137 // Release the cached font
133 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) 138 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts)
134 #endif // defined(OS_WIN) 139 #endif // defined(OS_WIN)
135 140
136 // Asks the browser to create a block of shared memory for the child process to 141 // Asks the browser to create a block of shared memory for the child process to
137 // fill in and pass back to the browser. 142 // fill in and pass back to the browser.
138 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, 143 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory,
139 uint32 /* buffer size */, 144 uint32 /* buffer size */,
140 base::SharedMemoryHandle) 145 base::SharedMemoryHandle)
146
147 #if defined(USE_TCMALLOC)
148 // Reply to ChildProcessMsg_GetTcmallocStats.
149 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
150 std::string /* output */)
151 #endif
OLDNEW
« no previous file with comments | « content/browser/tcmalloc_internals_request_job.cc ('k') | content/common/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698