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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 9125015: Implement profiler log writing at shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Update Created 8 years, 10 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: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index df2462969fd9057683f1b3413593c5395fc6eb57..6f7483f0bfe7b8327a3ab03ac3f4f7ce7819efc0 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1152,6 +1152,12 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
tracked_objects::ThreadData::InitializeAndSetTrackingStatus(enabled);
}
+ if (parsed_command_line().HasSwitch(switches::kProfilingOutputFile)) {
+ tracking_objects_.set_output_file_path(
+ parsed_command_line().GetSwitchValuePath(
+ switches::kProfilingOutputFile));
+ }
+
// This forces the TabCloseableStateWatcher to be created and, on chromeos,
// register for the notifications it needs to track the closeable state of
// tabs.

Powered by Google App Engine
This is Rietveld 408576698