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

Unified Diff: content/common/child_process_host.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/common/child_process_host.cc
===================================================================
--- content/common/child_process_host.cc (revision 110669)
+++ content/common/child_process_host.cc (working copy)
@@ -11,6 +11,7 @@
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
+#include "base/tracked_objects.h"
#include "content/common/child_process_info.h"
#include "content/common/child_process_messages.h"
#include "content/public/common/content_paths.h"
@@ -285,6 +286,9 @@
Send(new ChildProcessMsg_SetIPCLoggingEnabled(enabled));
#endif
+ bool enable = tracked_objects::ThreadData::tracking_status();
+ Send(new ChildProcessMsg_SetProfilerStatus(enable));
+
Send(new ChildProcessMsg_AskBeforeShutdown());
opening_channel_ = true;

Powered by Google App Engine
This is Rietveld 408576698