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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 8588023: Collect profiler stats from browser child processes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/renderer_host/render_process_host_impl.cc
===================================================================
--- content/browser/renderer_host/render_process_host_impl.cc (revision 110669)
+++ content/browser/renderer_host/render_process_host_impl.cc (working copy)
@@ -32,6 +32,7 @@
#include "base/sys_info.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
+#include "base/tracked_objects.h"
#include "content/browser/appcache/appcache_dispatcher_host.h"
#include "content/browser/browser_child_process_host.h"
#include "content/browser/browser_context.h"
@@ -933,6 +934,9 @@
IPC::Logging::GetInstance()->Enabled()));
#endif
+ bool enable = tracked_objects::ThreadData::tracking_status();
+ Send(new ChildProcessMsg_SetProfilerStatus(enable));
+
// Make sure the child checks with us before exiting, so that we do not try
// to schedule a new navigation in a swapped out and exiting renderer.
Send(new ChildProcessMsg_AskBeforeShutdown());

Powered by Google App Engine
This is Rietveld 408576698