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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10827290: Add a commandline switch to run PerformanceMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed comment Created 8 years, 4 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 | « no previous file | chrome/browser/performance_monitor/events.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 1988781b2438d2d2c1b9a33193ec4b08d8207e53..e2e7b468c243cb8e54fdc60d758f7d4dc499895d 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -56,6 +56,7 @@
#include "chrome/browser/notifications/desktop_notification_service.h"
#include "chrome/browser/notifications/desktop_notification_service_factory.h"
#include "chrome/browser/page_cycler/page_cycler.h"
+#include "chrome/browser/performance_monitor/performance_monitor.h"
#include "chrome/browser/performance_monitor/startup_timer.h"
#include "chrome/browser/plugin_prefs.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -1429,6 +1430,12 @@ bool ChromeBrowserMainParts::MainMessageLoopRun(int* result_code) {
#else
base::RunLoop run_loop;
#endif
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kRunPerformanceMonitor)) {
+ performance_monitor::PerformanceMonitor::GetInstance()->Start();
+ }
+
run_loop.Run();
return true;
« no previous file with comments | « no previous file | chrome/browser/performance_monitor/events.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698