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

Unified Diff: chrome/browser/chrome_browser_main.h

Issue 10834015: Add Startup Timing to CPM (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Requested changes added Created 8 years, 5 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.h
diff --git a/chrome/browser/chrome_browser_main.h b/chrome/browser/chrome_browser_main.h
index 00c05d098141af22013e9cc3cf5c863e4e0813f3..56a40222dbbb18fe24f5806cfd79b87b0c8ce0ca 100644
--- a/chrome/browser/chrome_browser_main.h
+++ b/chrome/browser/chrome_browser_main.h
@@ -43,6 +43,10 @@ namespace content {
struct MainFunctionParams;
}
+namespace performance_monitor {
+class StartupTimer;
+}
+
class ChromeBrowserMainParts : public content::BrowserMainParts {
public:
virtual ~ChromeBrowserMainParts();
@@ -177,6 +181,11 @@ class ChromeBrowserMainParts : public content::BrowserMainParts {
// it is destroyed last.
scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_;
+ // A timer to hold data regarding startup and session restore times for
+ // PerformanceMonitor so that we don't have to start the entire
+ // PerformanceMonitor at browser startup.
+ scoped_ptr<performance_monitor::StartupTimer> startup_timer_;
+
// Creating this object starts tracking the creation and deletion of Task
// instance. This MUST be done before main_message_loop, so that it is
// destroyed after the main_message_loop.

Powered by Google App Engine
This is Rietveld 408576698