summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main.h
diff options
context:
space:
mode:
authorrdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 20:30:24 +0000
committerrdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 20:30:24 +0000
commit0c1c47564b667a988d28e53fb7d276f20866796b (patch)
tree89daf84f415c95ce022ea36cbb0f07c8c1636483 /chrome/browser/chrome_browser_main.h
parentbeee7a9de8c1fb91f05ffa7eeb657a5679c1dfe4 (diff)
downloadchromium_src-0c1c47564b667a988d28e53fb7d276f20866796b.zip
chromium_src-0c1c47564b667a988d28e53fb7d276f20866796b.tar.gz
chromium_src-0c1c47564b667a988d28e53fb7d276f20866796b.tar.bz2
Add Startup Timing to CPM
Add in support for timing chrome's startup and session restore times. BUG=130212 TEST=Included Review URL: https://chromiumcodereview.appspot.com/10834015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main.h')
-rw-r--r--chrome/browser/chrome_browser_main.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_main.h b/chrome/browser/chrome_browser_main.h
index 1b16d9c..c820c16 100644
--- a/chrome/browser/chrome_browser_main.h
+++ b/chrome/browser/chrome_browser_main.h
@@ -44,6 +44,10 @@ namespace content {
struct MainFunctionParams;
}
+namespace performance_monitor {
+class StartupTimer;
+}
+
class ChromeBrowserMainParts : public content::BrowserMainParts {
public:
virtual ~ChromeBrowserMainParts();
@@ -132,6 +136,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.