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

Issue 11785014: Record metrics for slow startups (Closed)

Created:
7 years, 11 months ago by jeremy
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Record metrics for slow startups * Add a mechanism to collect duration of various operations for slow startups (defined as taking >= 10s). * Move collection of Startup.BrowserMessageLoopStartTimeFromMainEntry metric to startup_metric_utils.cc. * Change bucketing of Startup.BrowserMessageLoopStartTimeFromMainEntry from 0-5min instead of from 0-1 hour to improve granularity. * Collect metrics for major operations in Safe Browsing startup. BUG=160927 TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176808

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : Fixup #

Patch Set 4 : Fixup #

Patch Set 5 : Fixup #

Total comments: 22

Patch Set 6 : Fix review comments. #

Total comments: 3

Patch Set 7 : Fix review comments #

Patch Set 8 : Fix Android/Linux Aurora compile failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -27 lines) Patch
M chrome/browser/bookmarks/bookmark_storage.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 1 chunk +2 lines, -23 lines 0 comments Download
M chrome/browser/safe_browsing/database_manager.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/startup_metric_utils.h View 1 2 3 4 5 6 2 chunks +23 lines, -2 lines 0 comments Download
M chrome/common/startup_metric_utils.cc View 1 2 3 4 5 6 7 2 chunks +74 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jeremy
tony: General review. Shess: safe_browsing/ , specifically, am I timing the right things here? Any ...
7 years, 11 months ago (2013-01-06 15:01:49 UTC) #1
tonyg
lgtm with nits https://codereview.chromium.org/11785014/diff/13/chrome/common/startup_metric_utils.cc File chrome/common/startup_metric_utils.cc (right): https://codereview.chromium.org/11785014/diff/13/chrome/common/startup_metric_utils.cc#newcode25 chrome/common/startup_metric_utils.cc:25: typedef base::hash_map<std::string,base::TimeDelta> SubstemStartupTimeHash; s/Substem/Subsystem/ ? https://codereview.chromium.org/11785014/diff/13/chrome/common/startup_metric_utils.cc#newcode84 ...
7 years, 11 months ago (2013-01-07 20:44:49 UTC) #2
Scott Hess - ex-Googler
https://codereview.chromium.org/11785014/diff/13/chrome/browser/safe_browsing/database_manager.cc File chrome/browser/safe_browsing/database_manager.cc (right): https://codereview.chromium.org/11785014/diff/13/chrome/browser/safe_browsing/database_manager.cc#newcode505 chrome/browser/safe_browsing/database_manager.cc:505: scoped_timer("Startup.SlowStartupSafeBrowsingGetDatabase"); I believe that this will measure the time ...
7 years, 11 months ago (2013-01-07 21:47:25 UTC) #3
jeremy
https://codereview.chromium.org/11785014/diff/13/chrome/browser/safe_browsing/safe_browsing_service.cc File chrome/browser/safe_browsing/safe_browsing_service.cc (right): https://codereview.chromium.org/11785014/diff/13/chrome/browser/safe_browsing/safe_browsing_service.cc#newcode169 chrome/browser/safe_browsing/safe_browsing_service.cc:169: scoped_timer("Startup.SlowStartupSafeBrowsingServiceInitialize"); Neither would I, but I think if nothing ...
7 years, 11 months ago (2013-01-10 15:08:39 UTC) #4
Scott Hess - ex-Googler
lgtm. I suspect the histogram parameters in the end just won't matter all _that_ much. ...
7 years, 11 months ago (2013-01-10 20:43:13 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/11785014/14001
7 years, 11 months ago (2013-01-14 18:17:26 UTC) #6
commit-bot: I haz the power
Presubmit check for 11785014-14001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-14 18:17:37 UTC) #7
jeremy
sky: owner review plz, thanks!
7 years, 11 months ago (2013-01-14 18:25:12 UTC) #8
sky
LGTM https://codereview.chromium.org/11785014/diff/14001/chrome/common/startup_metric_utils.cc File chrome/common/startup_metric_utils.cc (right): https://codereview.chromium.org/11785014/diff/14001/chrome/common/startup_metric_utils.cc#newcode64 chrome/common/startup_metric_utils.cc:64: // Bail if uptime < 7 minutes, to ...
7 years, 11 months ago (2013-01-14 21:54:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/11785014/23001
7 years, 11 months ago (2013-01-15 01:18:20 UTC) #10
commit-bot: I haz the power
Failed to trigger a try job on android_dbg HTTP Error 400: Bad Request
7 years, 11 months ago (2013-01-15 02:11:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremy@chromium.org/11785014/32001
7 years, 11 months ago (2013-01-15 02:11:59 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 06:35:59 UTC) #13
Message was sent while issue was closed.
Change committed as 176808

Powered by Google App Engine
This is Rietveld 408576698