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

Unified Diff: content/common/child_thread.cc

Issue 10239012: Route calls to tcmalloc MallocExtension through allocator agnostic interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tcmalloc_internals_request_job.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_thread.cc
diff --git a/content/common/child_thread.cc b/content/common/child_thread.cc
index b701ba2663bcab81335b7f033cadf2064fc6ed23..0e69c65aa4afeb6966dbb5298db1cd12af48e345 100644
--- a/content/common/child_thread.cc
+++ b/content/common/child_thread.cc
@@ -4,6 +4,7 @@
#include "content/common/child_thread.h"
+#include "base/allocator/allocator_extension.h"
#include "base/command_line.h"
#include "base/message_loop.h"
#include "base/process.h"
@@ -27,10 +28,6 @@
#include "content/common/handle_enumerator_win.h"
#endif
-#if defined(USE_TCMALLOC)
-#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h"
-#endif
-
using tracked_objects::ThreadData;
ChildThread::ChildThread() {
@@ -257,7 +254,7 @@ void ChildThread::OnDumpHandles() {
void ChildThread::OnGetTcmallocStats() {
std::string result;
char buffer[1024 * 32];
- MallocExtension::instance()->GetStats(buffer, sizeof(buffer));
+ base::allocator::GetStats(buffer, sizeof(buffer));
result.append(buffer);
Send(new ChildProcessHostMsg_TcmallocStats(result));
}
« no previous file with comments | « content/browser/tcmalloc_internals_request_job.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698