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

Issue 10834015: Add Startup Timing to CPM (Closed)

Created:
8 years, 5 months ago by Devlin
Modified:
8 years, 4 months ago
Reviewers:
Yoyo Zhou, Nico, sky
CC:
chromium-reviews, erikwright (departed), marja+watch_chromium.org, brettw-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add Startup Timing to CPM Add in support for timing chrome's startup and session restore times. BUG=130212 TEST=Included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150881

Patch Set 1 : #

Total comments: 20

Patch Set 2 : Requested changes added #

Total comments: 8

Patch Set 3 : Sky's finds + updates #

Total comments: 1

Patch Set 4 : Final changes for cq #

Patch Set 5 : Windows fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -9 lines) Patch
M chrome/browser/chrome_browser_main.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/performance_monitor/constants.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/constants.cc View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/metric_details.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/performance_monitor/metric_details.cc View 1 2 3 1 chunk +18 lines, -0 lines 1 comment Download
M chrome/browser/performance_monitor/performance_monitor_browsertest.cc View 1 2 3 4 chunks +91 lines, -3 lines 0 comments Download
A chrome/browser/performance_monitor/startup_timer.h View 1 2 1 chunk +103 lines, -0 lines 0 comments Download
A chrome/browser/performance_monitor/startup_timer.cc View 1 2 3 4 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_restore_browsertest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_service.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sessions/session_service_test_helper.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_service_test_helper.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Devlin
When you have time :) Comes after https://chromiumcodereview.appspot.com/10815079/ (unclean exits).
8 years, 4 months ago (2012-07-30 18:51:11 UTC) #1
Yoyo Zhou
http://codereview.chromium.org/10834015/diff/8018/base/time.h File base/time.h (right): http://codereview.chromium.org/10834015/diff/8018/base/time.h#newcode85 base/time.h:85: bool is_null() const { I'm not sure this is ...
8 years, 4 months ago (2012-07-31 09:57:32 UTC) #2
Devlin
http://codereview.chromium.org/10834015/diff/8018/base/time.h File base/time.h (right): http://codereview.chromium.org/10834015/diff/8018/base/time.h#newcode85 base/time.h:85: bool is_null() const { On 2012/07/31 09:57:32, Yoyo Zhou ...
8 years, 4 months ago (2012-07-31 16:43:40 UTC) #3
Yoyo Zhou
LGTM http://codereview.chromium.org/10834015/diff/15005/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (right): http://codereview.chromium.org/10834015/diff/15005/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#newcode51 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:51: namespace { nit: newline after
8 years, 4 months ago (2012-08-02 11:33:34 UTC) #4
Devlin
+ sky for c/b/, c/b/ui/, and c/b/sessions/
8 years, 4 months ago (2012-08-07 16:12:57 UTC) #5
sky
https://chromiumcodereview.appspot.com/10834015/diff/15005/chrome/browser/sessions/session_restore.cc File chrome/browser/sessions/session_restore.cc (right): https://chromiumcodereview.appspot.com/10834015/diff/15005/chrome/browser/sessions/session_restore.cc#newcode444 chrome/browser/sessions/session_restore.cc:444: performance_monitor::StartupTimer::SetElapsedSessionRestoreTime( What happens if this is invoked multiple times? ...
8 years, 4 months ago (2012-08-07 19:48:03 UTC) #6
Devlin
https://chromiumcodereview.appspot.com/10834015/diff/15005/chrome/browser/performance_monitor/performance_monitor_browsertest.cc File chrome/browser/performance_monitor/performance_monitor_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834015/diff/15005/chrome/browser/performance_monitor/performance_monitor_browsertest.cc#newcode51 chrome/browser/performance_monitor/performance_monitor_browsertest.cc:51: namespace { On 2012/08/02 11:33:34, Yoyo Zhou wrote: > ...
8 years, 4 months ago (2012-08-07 22:51:22 UTC) #7
sky
LGTM https://chromiumcodereview.appspot.com/10834015/diff/11007/chrome/browser/sessions/session_restore_browsertest.cc File chrome/browser/sessions/session_restore_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834015/diff/11007/chrome/browser/sessions/session_restore_browsertest.cc#newcode55 chrome/browser/sessions/session_restore_browsertest.cc:55: // SessionServiceFactory::GetForProfile(browser()->profile())-> remove these two lines.
8 years, 4 months ago (2012-08-07 23:19:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10834015/16033
8 years, 4 months ago (2012-08-08 17:24:20 UTC) #9
commit-bot: I haz the power
Try job failure for 10834015-16033 (retry) on win_rel for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-08 19:45:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/10834015/20016
8 years, 4 months ago (2012-08-09 18:22:36 UTC) #11
commit-bot: I haz the power
Change committed as 150881
8 years, 4 months ago (2012-08-09 20:30:26 UTC) #12
Nico
8 years, 4 months ago (2012-08-10 01:27:58 UTC) #13
https://chromiumcodereview.appspot.com/10834015/diff/20016/chrome/browser/per...
File chrome/browser/performance_monitor/metric_details.cc (right):

https://chromiumcodereview.appspot.com/10834015/diff/20016/chrome/browser/per...
chrome/browser/performance_monitor/metric_details.cc:39: },
This adds a static initializer to chrome. Because our baseline was too high, the
bots didn't notice.

This is because kMetricStartupTimeName and friends are defined in another
translation unit and hence the compiler doesn't know their value when compiling
this file.

Powered by Google App Engine
This is Rietveld 408576698