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

Unified Diff: content/app/content_main_runner.cc

Issue 999883002: Profiler-instrumentation of the startup time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 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/app/content_main_runner.cc
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
index 863f02be27411b4490f047a8b4d8d944d6216518..d844d6db84315808964a62326b3b0adb002eb859 100644
--- a/content/app/content_main_runner.cc
+++ b/content/app/content_main_runner.cc
@@ -568,6 +568,9 @@ class ContentMainRunnerImpl : public ContentMainRunner {
base::EnableTerminationOnHeapCorruption();
+ // Enable profiler recording right after command line is initialized.
+ delegate_->EnableProfilerRecording();
vadimt 2015/03/12 18:23:03 Please move this call to BrowserMainRunnerImpl::In
yao 2015/03/12 18:32:19 This place runs earlier than that. we may want to
vadimt 2015/03/12 18:37:26 Unlikely. But we'll benefit from not spreading thi
yao 2015/03/13 14:28:31 I see. But this function takes in ContentMainPar
vadimt 2015/03/13 14:32:58 Then it's OK to leave it here. Please mark ALL add
yao 2015/03/13 15:24:49 Done.
+
#if !defined(OS_IOS)
SetProcessTitleFromCommandLine(argv);
#endif

Powered by Google App Engine
This is Rietveld 408576698