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

Unified Diff: content/child/child_thread.h

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup forward declarations 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.h
diff --git a/content/child/child_thread.h b/content/child/child_thread.h
index 6cce020bd41d92f61b29ff014f971c22288a046d..13d5335c82431d9334c20a9400fc84aa43783fc2 100644
--- a/content/child/child_thread.h
+++ b/content/child/child_thread.h
@@ -17,16 +17,20 @@
namespace base {
class MessageLoop;
-}
+
+namespace debug {
+class TraceMemoryController;
+} // namespace debug
+} // namespace base
namespace IPC {
class SyncChannel;
class SyncMessageFilter;
-}
+} // namespace IPC
namespace WebKit {
class WebFrame;
-}
+} // namespace WebKit
namespace content {
class ChildHistogramMessageFilter;
@@ -186,6 +190,10 @@ class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
base::WeakPtrFactory<ChildThread> channel_connected_factory_;
+ // Observes the trace event system. When tracing is enabled, optionally
+ // starts profiling the tcmalloc heap.
+ scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
+
DISALLOW_COPY_AND_ASSIGN(ChildThread);
};

Powered by Google App Engine
This is Rietveld 408576698