diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 01:32:15 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-24 01:32:15 +0000 |
commit | ec7182f84a873d646e91c8b15eae4abe3239cd89 (patch) | |
tree | c0a05302717c74b0163f0d82de07af2531ae195e /chrome/browser/sessions | |
parent | fc97e115d5eab2be847e1542d55d3699c1f56ea9 (diff) | |
download | chromium_src-ec7182f84a873d646e91c8b15eae4abe3239cd89.zip chromium_src-ec7182f84a873d646e91c8b15eae4abe3239cd89.tar.gz chromium_src-ec7182f84a873d646e91c8b15eae4abe3239cd89.tar.bz2 |
Instrument SessionRestore mechanism for slow startups
Add UMAs to measure parts of session restore that block loading of the first page, for slow startups.
BUG=160927
Review URL: https://chromiumcodereview.appspot.com/12049021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions')
-rw-r--r-- | chrome/browser/sessions/session_service.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc index b305ca3..7bf8851 100644 --- a/chrome/browser/sessions/session_service.cc +++ b/chrome/browser/sessions/session_service.cc @@ -33,6 +33,7 @@ #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/common/chrome_notification_types.h" #include "chrome/common/extensions/extension.h" +#include "chrome/common/startup_metric_utils.h" #include "content/public/browser/navigation_details.h" #include "content/public/browser/navigation_entry.h" #include "content/public/browser/notification_details.h" @@ -1005,6 +1006,9 @@ bool SessionService::CreateTabsAndWindows( // still return true and attempt to restore what we we can. VLOG(1) << "CreateTabsAndWindows"; + startup_metric_utils::ScopedSlowStartupUMA + scoped_timer("Startup.SlowStartupSessionServiceCreateTabsAndWindows"); + for (std::vector<SessionCommand*>::const_iterator i = data.begin(); i != data.end(); ++i) { const SessionCommand::id_type kCommandSetWindowBounds2 = 10; |