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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/chrome_render_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_message_filter.cc (revision 96064)
+++ chrome/browser/renderer_host/chrome_render_message_filter.cc (working copy)
@@ -4,7 +4,7 @@
#include "chrome/browser/renderer_host/chrome_render_message_filter.h"
-#include "base/file_util.h"
+#include "base/file_path.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/automation/automation_resource_message_filter.h"
#include "chrome/browser/browser_process.h"
@@ -121,8 +121,6 @@
OnExtensionRequestForIOThread)
#if defined(USE_TCMALLOC)
IPC_MESSAGE_HANDLER(ViewHostMsg_RendererTcmalloc, OnRendererTcmalloc)
- IPC_MESSAGE_HANDLER(ViewHostMsg_WriteTcmallocHeapProfile_ACK,
- OnWriteTcmallocHeapProfile)
#endif
IPC_MESSAGE_HANDLER(ViewHostMsg_GetPluginPolicies, OnGetPluginPolicies)
IPC_MESSAGE_HANDLER(ViewHostMsg_AllowDatabase, OnAllowDatabase)
@@ -386,17 +384,10 @@
}
#if defined(USE_TCMALLOC)
-void ChromeRenderMessageFilter::OnRendererTcmalloc(const std::string& output) {
- base::ProcessId pid = base::GetProcId(peer_handle());
+void ChromeRenderMessageFilter::OnRendererTcmalloc(base::ProcessId pid,
+ const std::string& output) {
AboutTcmallocRendererCallback(pid, output);
}
-
-void ChromeRenderMessageFilter::OnWriteTcmallocHeapProfile(
- const FilePath::StringType& filepath,
- const std::string& output) {
- VLOG(0) << "Writing renderer heap profile dump to: " << filepath;
- file_util::WriteFile(FilePath(filepath), output.c_str(), output.size());
-}
#endif
void ChromeRenderMessageFilter::OnGetPluginPolicies(
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698