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

Unified Diff: content/child/child_thread_impl.cc

Issue 1340013002: Add thread-local allocation context for tracing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 5 years, 3 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
« base/trace_event/pseudo_stack.cc ('K') | « content/child/child_thread_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 08c2075f7faef7542f94dc26911e6a202ab93eda..2e0f0ee679e949fb3b167aea929ede7d476baf55 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -28,6 +28,7 @@
#include "base/synchronization/lock.h"
#include "base/thread_task_runner_handle.h"
#include "base/threading/thread_local.h"
+#include "base/trace_event/pseudo_stack.h"
#include "base/tracked_objects.h"
#include "components/tracing/child_trace_message_filter.h"
#include "content/child/child_discardable_shared_memory_manager.h"
@@ -488,6 +489,9 @@ void ChildThreadImpl::Init(const Options& options) {
g_quit_closure.Get().BindToMainThread();
#endif
+ pseudo_stack_controller_.reset(
+ new base::trace_event::PseudoStackController());
+
#if defined(TCMALLOC_TRACE_MEMORY_SUPPORTED)
trace_memory_controller_.reset(new base::trace_event::TraceMemoryController(
message_loop_->task_runner(), ::HeapProfilerWithPseudoStackStart,
« base/trace_event/pseudo_stack.cc ('K') | « content/child/child_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698