From d4104109bee8967a047254ec82afa6ee1f70ba86 Mon Sep 17 00:00:00 2001 From: "sgk@chromium.org" Date: Thu, 8 Oct 2009 06:56:57 +0000 Subject: Display tcmalloc debug output from renderer processes in about:tcmalloc. BUG=none TEST=none Review URL: http://codereview.chromium.org/255080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28384 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/render_messages_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'chrome/common/render_messages_internal.h') diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index 9ec8ca9..3925798 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -541,6 +541,11 @@ IPC_BEGIN_MESSAGES(View) IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, int /* sequence number of Renderer Histograms. */) +#if defined(USE_TCMALLOC) + // Asks the renderer to send back tcmalloc stats. + IPC_MESSAGE_CONTROL0(ViewMsg_GetRendererTcmalloc) +#endif + // Notifies the renderer about ui theme changes IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) @@ -1360,6 +1365,13 @@ IPC_BEGIN_MESSAGES(ViewHost) int, /* sequence number of Renderer Histograms. */ std::vector) +#if defined USE_TCMALLOC + // Send back tcmalloc stats output. + IPC_MESSAGE_CONTROL2(ViewHostMsg_RendererTcmalloc, + int /* pid */, + std::string /* tcmalloc debug output */) +#endif + // Request for a DNS prefetch of the names in the array. // NameList is typedef'ed std::vector IPC_MESSAGE_CONTROL1(ViewHostMsg_DnsPrefetch, -- cgit v1.1