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

Issue 393753002: mac: Add a profiler for startup time. (Closed)

Created:
6 years, 5 months ago by erikchen
Modified:
6 years, 5 months ago
CC:
chromium-reviews, leng, tonyg, aiolos (Not reviewing)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: Add a profiler for startup time. The profiler records UMA metrics for several key phases in Chrome startup. BUG=393819 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283974

Patch Set 1 #

Patch Set 2 : test #

Total comments: 19

Patch Set 3 : Respond to comments from isherman. #

Total comments: 8

Patch Set 4 : Comments from isherman, round 2. #

Total comments: 18

Patch Set 5 : Remove unused comment. #

Patch Set 6 : Send histogram to UMA. #

Total comments: 12

Patch Set 7 : Comments from jeremy. #

Total comments: 4

Patch Set 8 : Comments from jeremy, round two. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -1 line) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 2 3 4 5 6 4 chunks +12 lines, -0 lines 0 comments Download
A chrome/browser/mac/mac_startup_profiler.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/mac/mac_startup_profiler.cc View 1 2 3 4 5 6 7 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M components/startup_metric_utils/startup_metric_utils.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M components/startup_metric_utils/startup_metric_utils.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
erikchen
mark: Please review.
6 years, 5 months ago (2014-07-15 17:21:04 UTC) #1
Mark Mentovai
I’m delegating this one to Jeremy (for Mac startup stuff) and isherman (for UMA stuff ...
6 years, 5 months ago (2014-07-15 17:38:45 UTC) #2
jeremy
Thanks for putting this together Erik! I'll take a look tomorrow morning my time.
6 years, 5 months ago (2014-07-15 17:43:19 UTC) #3
Ilya Sherman
You're adding a lot of metrics here. I bet that you'll find that only one ...
6 years, 5 months ago (2014-07-15 18:14:24 UTC) #4
erikchen
isherman: PTAL Filed bug to examine histograms to determine which ones are useful here: https://code.google.com/p/chromium/issues/detail?id=394087 ...
6 years, 5 months ago (2014-07-15 21:39:43 UTC) #5
Ilya Sherman
Metrics LGTM % nits: https://codereview.chromium.org/393753002/diff/20001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/20001/chrome/browser/mac/mac_startup_profiler.cc#newcode76 chrome/browser/mac/mac_startup_profiler.cc:76: // each different name. On ...
6 years, 5 months ago (2014-07-15 22:42:00 UTC) #6
erikchen
https://codereview.chromium.org/393753002/diff/80001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/80001/chrome/browser/mac/mac_startup_profiler.cc#newcode47 chrome/browser/mac/mac_startup_profiler.cc:47: std::string base("OSX.Startup."); On 2014/07/15 22:42:00, Ilya Sherman wrote: > ...
6 years, 5 months ago (2014-07-15 23:04:40 UTC) #7
jeremy
On the assumption that the plan is to use the stats collected in this CL ...
6 years, 5 months ago (2014-07-16 08:19:24 UTC) #8
erikchen
jeremy: PTAL These stats are not for local analysis. They are intended to provide more ...
6 years, 5 months ago (2014-07-16 22:00:33 UTC) #9
Ilya Sherman
https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc#newcode77 chrome/browser/mac/mac_startup_profiler.cc:77: name, min, max, bucket_count, base::HistogramBase::kNoFlags); On 2014/07/16 22:00:33, erikchen1 ...
6 years, 5 months ago (2014-07-16 22:02:41 UTC) #10
erikchen
https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc#newcode77 chrome/browser/mac/mac_startup_profiler.cc:77: name, min, max, bucket_count, base::HistogramBase::kNoFlags); On 2014/07/16 22:02:40, Ilya ...
6 years, 5 months ago (2014-07-16 22:12:18 UTC) #11
Ilya Sherman
https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/100001/chrome/browser/mac/mac_startup_profiler.cc#newcode77 chrome/browser/mac/mac_startup_profiler.cc:77: name, min, max, bucket_count, base::HistogramBase::kNoFlags); On 2014/07/16 22:12:18, erikchen1 ...
6 years, 5 months ago (2014-07-16 22:14:21 UTC) #12
jeremy
(please ignore duplicate comments below) OK, thanks for the clarifications, the piece I was missing ...
6 years, 5 months ago (2014-07-17 11:10:18 UTC) #13
erikchen
jeremy: PTAL I've sent email to leng@ and aiolos@ to make sure that we coordinate ...
6 years, 5 months ago (2014-07-17 18:14:07 UTC) #14
jeremy
LGTM! https://codereview.chromium.org/393753002/diff/180001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/180001/chrome/browser/mac/mac_startup_profiler.cc#newcode27 chrome/browser/mac/mac_startup_profiler.cc:27: const base::Time* launch_time = startup_metric_utils::MainEntryPointTime(); nit: launch_time -> ...
6 years, 5 months ago (2014-07-17 20:58:03 UTC) #15
erikchen
https://codereview.chromium.org/393753002/diff/180001/chrome/browser/mac/mac_startup_profiler.cc File chrome/browser/mac/mac_startup_profiler.cc (right): https://codereview.chromium.org/393753002/diff/180001/chrome/browser/mac/mac_startup_profiler.cc#newcode27 chrome/browser/mac/mac_startup_profiler.cc:27: const base::Time* launch_time = startup_metric_utils::MainEntryPointTime(); On 2014/07/17 20:58:02, jeremy ...
6 years, 5 months ago (2014-07-17 21:05:03 UTC) #16
erikchen
sky: Looking for an owner review of chrome/browser/*
6 years, 5 months ago (2014-07-17 21:06:17 UTC) #17
sky
LGTM
6 years, 5 months ago (2014-07-17 21:39:36 UTC) #18
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-17 21:42:26 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/393753002/200001
6 years, 5 months ago (2014-07-17 21:43:55 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 02:21:35 UTC) #21
Message was sent while issue was closed.
Change committed as 283974

Powered by Google App Engine
This is Rietveld 408576698