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

Unified Diff: content/browser/browser_main_loop.cc

Issue 22836004: Chrome tracing for system-wide performance stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asvalue
Patch Set: nit Created 7 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
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 429da81500747d7355ae5e8ed989748e2d582bef..85a53ab9fab1953d4fb465eb5ace14591a3e944e 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -495,6 +495,9 @@ void BrowserMainLoop::MainMessageLoopStart() {
::HeapProfilerStop,
::GetHeapProfile));
#endif
+
+ system_stats_monitor_.reset(new base::debug::TraceEventSystemStatsMonitor(
+ base::MessageLoop::current()->message_loop_proxy()));
darin (slow to review) 2013/09/12 20:51:15 nit: New code should really be using base::ThreadT
jwmak 2013/09/13 20:57:11 Done.
}
int BrowserMainLoop::PreCreateThreads() {
@@ -715,6 +718,7 @@ void BrowserMainLoop::ShutdownThreadsAndCleanUp() {
}
trace_memory_controller_.reset();
+ system_stats_monitor_.reset();
#if !defined(OS_IOS)
// Destroying the GpuProcessHostUIShims on the UI thread posts a task to

Powered by Google App Engine
This is Rietveld 408576698