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

Issue 999883002: Profiler-instrumentation of the startup time. (Closed)

Created:
5 years, 9 months ago by yao
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Profiler-instrumentation of the startup time. Profiler recording is enabled right after command line is initialized. (We need command line to be initialized because we need get channel info first to determine whether or not to enable profiling). function is added inside ChromeMainDelegate and will be called from content. BUG=453640 Committed: https://crrev.com/9e6a5ab378cec3edf0eeba1b6867db055d32d2a7 Cr-Commit-Position: refs/heads/master@{#321166}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 8

Patch Set 3 : Address comments. #

Total comments: 12

Patch Set 4 : Address comments. #

Total comments: 2

Patch Set 5 : Address comments. #

Total comments: 6

Patch Set 6 : Address comments. #

Patch Set 7 : Address comments #

Patch Set 8 : Correct format error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M chrome/app/chrome_main_delegate.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/browser_main_runner.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/app/content_main_delegate.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/app/content_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
yao
Hi vadim, PTAL. Tested on perf bots as well. Thanks, Yiyao
5 years, 9 months ago (2015-03-12 16:42:30 UTC) #2
vadimt
https://codereview.chromium.org/999883002/diff/20001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/20001/chrome/app/chrome_main_delegate.cc#newcode976 chrome/app/chrome_main_delegate.cc:976: void ChromeMainDelegate::EnableProfilerRecording() { Rename to MaybeEnableProfilerRecording. Or, make this ...
5 years, 9 months ago (2015-03-12 17:54:56 UTC) #3
yao
https://codereview.chromium.org/999883002/diff/20001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/20001/chrome/app/chrome_main_delegate.cc#newcode976 chrome/app/chrome_main_delegate.cc:976: void ChromeMainDelegate::EnableProfilerRecording() { On 2015/03/12 17:54:56, vadimt wrote: > ...
5 years, 9 months ago (2015-03-12 18:16:17 UTC) #4
vadimt
https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode980 chrome/app/chrome_main_delegate.cc:980: tracked_objects::ScopedTracker::Enable(); We don't need BOTH returning bool and enabling. ...
5 years, 9 months ago (2015-03-12 18:23:03 UTC) #5
yao
https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode980 chrome/app/chrome_main_delegate.cc:980: tracked_objects::ScopedTracker::Enable(); On 2015/03/12 18:23:03, vadimt wrote: > We don't ...
5 years, 9 months ago (2015-03-12 18:32:20 UTC) #6
vadimt
https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode980 chrome/app/chrome_main_delegate.cc:980: tracked_objects::ScopedTracker::Enable(); Hypothetically, another implementation may override this, and there ...
5 years, 9 months ago (2015-03-12 18:37:26 UTC) #7
yao
https://codereview.chromium.org/999883002/diff/40001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/999883002/diff/40001/content/app/content_main_runner.cc#newcode572 content/app/content_main_runner.cc:572: delegate_->EnableProfilerRecording(); On 2015/03/12 18:37:26, vadimt wrote: > Unlikely. But ...
5 years, 9 months ago (2015-03-13 14:28:31 UTC) #8
vadimt
https://codereview.chromium.org/999883002/diff/40001/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://codereview.chromium.org/999883002/diff/40001/content/app/content_main_runner.cc#newcode572 content/app/content_main_runner.cc:572: delegate_->EnableProfilerRecording(); Then it's OK to leave it here. Please ...
5 years, 9 months ago (2015-03-13 14:32:58 UTC) #9
yao
https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode980 chrome/app/chrome_main_delegate.cc:980: tracked_objects::ScopedTracker::Enable(); On 2015/03/12 18:37:26, vadimt wrote: > Hypothetically, another ...
5 years, 9 months ago (2015-03-13 15:24:49 UTC) #11
vadimt
https://codereview.chromium.org/999883002/diff/80001/content/public/app/content_main_delegate.h File content/public/app/content_main_delegate.h (right): https://codereview.chromium.org/999883002/diff/80001/content/public/app/content_main_delegate.h#newcode80 content/public/app/content_main_delegate.h:80: virtual bool ShouldEnableProfilerRecording() {return false;} Please mention the bug ...
5 years, 9 months ago (2015-03-13 15:27:41 UTC) #12
yao
https://codereview.chromium.org/999883002/diff/80001/content/public/app/content_main_delegate.h File content/public/app/content_main_delegate.h (right): https://codereview.chromium.org/999883002/diff/80001/content/public/app/content_main_delegate.h#newcode80 content/public/app/content_main_delegate.h:80: virtual bool ShouldEnableProfilerRecording() {return false;} On 2015/03/13 15:27:41, vadimt ...
5 years, 9 months ago (2015-03-13 15:35:02 UTC) #14
vadimt
lgtm
5 years, 9 months ago (2015-03-13 15:35:55 UTC) #15
yao
Hi Carlos, Could you do an owner's review? Thanks! Yiyao
5 years, 9 months ago (2015-03-13 15:49:56 UTC) #17
yao
ping?
5 years, 9 months ago (2015-03-16 17:29:33 UTC) #18
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode18 chrome/app/chrome_main_delegate.cc:18: #include "base/profiler/scoped_tracker.h" why do we need this here? https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.h ...
5 years, 9 months ago (2015-03-16 22:16:25 UTC) #19
yao
https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode18 chrome/app/chrome_main_delegate.cc:18: #include "base/profiler/scoped_tracker.h" On 2015/03/16 22:16:25, cpu wrote: > why ...
5 years, 9 months ago (2015-03-17 14:32:01 UTC) #20
vadimt
https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.h File chrome/app/chrome_main_delegate.h (right): https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.h#newcode45 chrome/app/chrome_main_delegate.h:45: bool ShouldEnableProfilerRecording() override; yao@, it looks like there are ...
5 years, 9 months ago (2015-03-17 14:37:27 UTC) #21
yao
https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.h File chrome/app/chrome_main_delegate.h (right): https://codereview.chromium.org/999883002/diff/120001/chrome/app/chrome_main_delegate.h#newcode45 chrome/app/chrome_main_delegate.h:45: bool ShouldEnableProfilerRecording() override; On 2015/03/17 14:37:26, vadimt wrote: > ...
5 years, 9 months ago (2015-03-17 14:44:47 UTC) #22
vadimt
Yes
5 years, 9 months ago (2015-03-17 14:47:06 UTC) #23
cpu_(ooo_6.6-7.5)
lgtm
5 years, 9 months ago (2015-03-17 20:42:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999883002/160001
5 years, 9 months ago (2015-03-17 21:30:05 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/6243)
5 years, 9 months ago (2015-03-17 21:36:40 UTC) #29
yao
Changed the code a little bit to correct a format error. (A virtual function can't ...
5 years, 9 months ago (2015-03-18 17:42:16 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/999883002/180001
5 years, 9 months ago (2015-03-18 18:00:42 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:180001)
5 years, 9 months ago (2015-03-18 18:04:50 UTC) #34
commit-bot: I haz the power
5 years, 9 months ago (2015-03-18 18:06:00 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/9e6a5ab378cec3edf0eeba1b6867db055d32d2a7
Cr-Commit-Position: refs/heads/master@{#321166}

Powered by Google App Engine
This is Rietveld 408576698