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

Unified Diff: mojo/runner/desktop/launcher_process.cc

Issue 1177853003: [Startup Tracing] Enable startup tracing from config file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder in content/app/DEPS Created 5 years, 6 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
« no previous file with comments | « mojo/runner/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/desktop/launcher_process.cc
diff --git a/mojo/runner/desktop/launcher_process.cc b/mojo/runner/desktop/launcher_process.cc
index 361320ef41f6c57981f0b17f2f48817243c36b8a..8411411538e8f44d12829841af1ae625bd6e8050 100644
--- a/mojo/runner/desktop/launcher_process.cc
+++ b/mojo/runner/desktop/launcher_process.cc
@@ -15,6 +15,7 @@
#include "base/message_loop/message_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/trace_event/trace_event.h"
+#include "components/tracing/startup_tracing.h"
#include "mojo/runner/context.h"
#include "mojo/runner/switches.h"
@@ -87,6 +88,8 @@ int LauncherProcessMain(int argc, char** argv) {
base::trace_event::RECORD_UNTIL_FULL);
base::trace_event::TraceLog::GetInstance()->SetEnabled(
trace_config, base::trace_event::TraceLog::RECORDING_MODE);
+ } else {
+ tracing::EnableStartupTracingIfConfigFileExists();
yzshen1 2015/06/16 23:44:58 I haven't looked at the code very closely. In this
Zhen Wang 2015/06/16 23:49:00 Yes. This is expected. So the existing way is to u
}
// We want the shell::Context to outlive the MessageLoop so that pipes are
« no previous file with comments | « mojo/runner/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698