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

Side by Side Diff: chrome/common/render_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 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins) 231 IPC_MESSAGE_ROUTED0(ChromeViewMsg_LoadBlockedPlugins)
232 232
233 // Asks the renderer to send back stats on the WebCore cache broken down by 233 // Asks the renderer to send back stats on the WebCore cache broken down by
234 // resource types. 234 // resource types.
235 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats) 235 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetCacheResourceStats)
236 236
237 // Asks the renderer to send back Histograms. 237 // Asks the renderer to send back Histograms.
238 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms, 238 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererHistograms,
239 int /* sequence number of Renderer Histograms. */) 239 int /* sequence number of Renderer Histograms. */)
240 240
241 // Asks the renderer to send back tracked data (ThreadData in tracked_objects).
242 IPC_MESSAGE_CONTROL1(ChromeViewMsg_GetRendererTrackedData,
243 int /* sequence number of Renderer tracked data. */)
244
245 // Asks the renderer to set the tracking status.
246 IPC_MESSAGE_CONTROL1(ChromeViewMsg_SetTrackingStatus,
247 bool /* tracking status */)
248
249 // Tells the renderer to create a FieldTrial, and by using a 100% probability 241 // Tells the renderer to create a FieldTrial, and by using a 100% probability
250 // for the FieldTrial, forces the FieldTrial to have assigned group name. 242 // for the FieldTrial, forces the FieldTrial to have assigned group name.
251 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup, 243 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetFieldTrialGroup,
252 std::string /* field trial name */, 244 std::string /* field trial name */,
253 std::string /* group name that was assigned. */) 245 std::string /* group name that was assigned. */)
254 246
255 #if defined(USE_TCMALLOC) 247 #if defined(USE_TCMALLOC)
256 // Asks the renderer to send back tcmalloc stats. 248 // Asks the renderer to send back tcmalloc stats.
257 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc) 249 IPC_MESSAGE_CONTROL0(ChromeViewMsg_GetRendererTcmalloc)
258 // Asks the renderer to enable/disable Tcmalloc heap profiling. 250 // Asks the renderer to enable/disable Tcmalloc heap profiling.
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState, 464 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetSearchProviderInstallState,
473 GURL /* page url */, 465 GURL /* page url */,
474 GURL /* inquiry url */, 466 GURL /* inquiry url */,
475 search_provider::InstallState /* install */) 467 search_provider::InstallState /* install */)
476 468
477 // Send back histograms as vector of pickled-histogram strings. 469 // Send back histograms as vector of pickled-histogram strings.
478 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms, 470 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererHistograms,
479 int, /* sequence number of Renderer Histograms. */ 471 int, /* sequence number of Renderer Histograms. */
480 std::vector<std::string>) 472 std::vector<std::string>)
481 473
482 // Send back tracked data (ThreadData in tracked_objects) as a pickled string.
483 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RendererTrackedData,
484 int, /* sequence number of Renderer tracked data. */
485 std::string /* pickled Value containing profile data. */)
486
487 // Check if tracking is enabled in browser process or not. Browser process
488 // responds by sending ChromeViewMsg_SetTrackingStatus message to the process
489 // that sent this message.
490 IPC_MESSAGE_CONTROL0(ChromeViewHostMsg_IsTrackingEnabled)
491
492 #if defined USE_TCMALLOC 474 #if defined USE_TCMALLOC
493 // Send back tcmalloc stats output. 475 // Send back tcmalloc stats output.
494 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc, 476 IPC_MESSAGE_CONTROL1(ChromeViewHostMsg_RendererTcmalloc,
495 std::string /* tcmalloc debug output */) 477 std::string /* tcmalloc debug output */)
496 // Send back tcmalloc profile to write to a file. 478 // Send back tcmalloc profile to write to a file.
497 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK, 479 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_WriteTcmallocHeapProfile_ACK,
498 FilePath::StringType /* filepath */, 480 FilePath::StringType /* filepath */,
499 std::string /* heap profile */) 481 std::string /* heap profile */)
500 #endif 482 #endif
501 483
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 // previous SetCookie message to be processed. 579 // previous SetCookie message to be processed.
598 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, 580 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies,
599 GURL /* url */, 581 GURL /* url */,
600 GURL /* first_party_for_cookies */, 582 GURL /* first_party_for_cookies */,
601 std::string /* cookies */) 583 std::string /* cookies */)
602 584
603 // Provide the browser process with current renderer framerate. 585 // Provide the browser process with current renderer framerate.
604 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, 586 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS,
605 int /* routing id */, 587 int /* routing id */,
606 float /* frames per second */) 588 float /* frames per second */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698