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

Side by Side Diff: chrome/common/render_messages.h

Issue 7607009: Revert 96054 - Enable tcmalloc profiling and heap dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <map> 6 #include <map>
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 // Tells the renderer to create a FieldTrial, and by using a 100% probability 205 // Tells the renderer to create a FieldTrial, and by using a 100% probability
206 // for the FieldTrial, forces the FieldTrial to have assigned group name. 206 // for the FieldTrial, forces the FieldTrial to have assigned group name.
207 IPC_MESSAGE_CONTROL2(ViewMsg_SetFieldTrialGroup, 207 IPC_MESSAGE_CONTROL2(ViewMsg_SetFieldTrialGroup,
208 std::string /* field trial name */, 208 std::string /* field trial name */,
209 std::string /* group name that was assigned. */) 209 std::string /* group name that was assigned. */)
210 210
211 #if defined(USE_TCMALLOC) 211 #if defined(USE_TCMALLOC)
212 // Asks the renderer to send back tcmalloc stats. 212 // Asks the renderer to send back tcmalloc stats.
213 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc) 213 IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc)
214 // Asks the renderer to enable/disable Tcmalloc heap profiling.
215 // Note: filename_prefix arg is effectively ignored since the render process
216 // will be unable to write files to disk. Instead use WriteTcmallocHeapProfile
217 // to write a profile file.
218 IPC_MESSAGE_CONTROL2(ViewMsg_SetTcmallocHeapProfiling,
219 bool /* enable profiling */,
220 std::string /* filename prefix for profiles */)
221 // Asks the renderer to write the Tcmalloc heap profile to a file.
222 IPC_MESSAGE_CONTROL1(ViewMsg_WriteTcmallocHeapProfile,
223 FilePath::StringType /* filepath */)
224 #endif 214 #endif
225 215
226 // Asks the renderer to send back V8 heap stats. 216 // Asks the renderer to send back V8 heap stats.
227 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats) 217 IPC_MESSAGE_CONTROL0(ViewMsg_GetV8HeapStats)
228 218
229 // Posts a message to the renderer. 219 // Posts a message to the renderer.
230 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost, 220 IPC_MESSAGE_ROUTED3(ViewMsg_HandleMessageFromExternalHost,
231 std::string /* The message */, 221 std::string /* The message */,
232 std::string /* The origin */, 222 std::string /* The origin */,
233 std::string /* The target*/) 223 std::string /* The target*/)
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 GURL /* inquiry url */, 407 GURL /* inquiry url */,
418 search_provider::InstallState /* install */) 408 search_provider::InstallState /* install */)
419 409
420 // Send back histograms as vector of pickled-histogram strings. 410 // Send back histograms as vector of pickled-histogram strings.
421 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererHistograms, 411 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererHistograms,
422 int, /* sequence number of Renderer Histograms. */ 412 int, /* sequence number of Renderer Histograms. */
423 std::vector<std::string>) 413 std::vector<std::string>)
424 414
425 #if defined USE_TCMALLOC 415 #if defined USE_TCMALLOC
426 // Send back tcmalloc stats output. 416 // Send back tcmalloc stats output.
427 IPC_MESSAGE_CONTROL1(ViewHostMsg_RendererTcmalloc, 417 IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererTcmalloc,
418 int /* pid */,
428 std::string /* tcmalloc debug output */) 419 std::string /* tcmalloc debug output */)
429 // Send back tcmalloc profile to write to a file.
430 IPC_MESSAGE_CONTROL2(ViewHostMsg_WriteTcmallocHeapProfile_ACK,
431 FilePath::StringType /* filepath */,
432 std::string /* heap profile */)
433 #endif 420 #endif
434 421
435 // Sends back stats about the V8 heap. 422 // Sends back stats about the V8 heap.
436 IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats, 423 IPC_MESSAGE_CONTROL2(ViewHostMsg_V8HeapStats,
437 int /* size of heap (allocated from the OS) */, 424 int /* size of heap (allocated from the OS) */,
438 int /* bytes in use */) 425 int /* bytes in use */)
439 426
440 // Request for a DNS prefetch of the names in the array. 427 // Request for a DNS prefetch of the names in the array.
441 // NameList is typedef'ed std::vector<std::string> 428 // NameList is typedef'ed std::vector<std::string>
442 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, 429 IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 int32 /* page_id */, 506 int32 /* page_id */,
520 bool /* result */) 507 bool /* result */)
521 508
522 // JavaScript related messages ----------------------------------------------- 509 // JavaScript related messages -----------------------------------------------
523 510
524 // Notify the JavaScript engine in the render to change its parameters 511 // Notify the JavaScript engine in the render to change its parameters
525 // while performing stress testing. 512 // while performing stress testing.
526 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 513 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
527 int /* cmd */, 514 int /* cmd */,
528 int /* param */) 515 int /* param */)
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.cc ('k') | chrome/renderer/chrome_render_process_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698