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

Unified Diff: content/child/child_thread.cc

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to ChildThread Created 7 years, 5 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
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 68c338a8276faa512743d2b61f1ab68e14466b92..33a5d1d9543347645796599746fe3ef309d5d546 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -159,6 +159,11 @@ void ChildThread::Init() {
#if defined(OS_ANDROID)
g_child_thread = this;
#endif
+
+#if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
+ trace_memory_controller_.reset(new base::debug::TraceMemoryController(
+ message_loop_->message_loop_proxy()));
+#endif
}
ChildThread::~ChildThread() {

Powered by Google App Engine
This is Rietveld 408576698