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

Issue 1290323003: Create a mapper to compute browser and renderer startup durations. (Closed)

Created:
5 years, 4 months ago by beaudoin
Modified:
5 years, 4 months ago
Reviewers:
dsinclair, nduca
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Base URL:
https://github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebased. #

Total comments: 12

Patch Set 3 : Answered comments. #

Patch Set 4 : Answered Nat, added tests, added SkipValue. #

Total comments: 8

Patch Set 5 : Answered nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -8 lines) Patch
M perf_insights/perf_insights_examples/map_process_count.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A perf_insights/perf_insights_examples/map_startup_info.html View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
A perf_insights/perf_insights_examples/map_startup_info_test.html View 1 2 3 4 1 chunk +72 lines, -0 lines 0 comments Download
M tracing/tracing/extras/chrome/chrome_browser_helper.html View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M tracing/tracing/model/thread.html View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M tracing/tracing/model/thread_slice.html View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
beaudoin
Nat: So I hacked this together really quickly. It uses the "name" argument I added ...
5 years, 4 months ago (2015-08-14 03:26:54 UTC) #2
dsinclair
https://codereview.chromium.org/1290323003/diff/1/perf_insights/perf_insights_examples/map_startup_info.html File perf_insights/perf_insights_examples/map_startup_info.html (right): https://codereview.chromium.org/1290323003/diff/1/perf_insights/perf_insights_examples/map_startup_info.html#newcode15 perf_insights/perf_insights_examples/map_startup_info.html:15: } Can you add an explict return undefined; to ...
5 years, 4 months ago (2015-08-14 13:18:34 UTC) #4
beaudoin
https://codereview.chromium.org/1290323003/diff/1/perf_insights/perf_insights_examples/map_startup_info.html File perf_insights/perf_insights_examples/map_startup_info.html (right): https://codereview.chromium.org/1290323003/diff/1/perf_insights/perf_insights_examples/map_startup_info.html#newcode15 perf_insights/perf_insights_examples/map_startup_info.html:15: } On 2015/08/14 13:18:33, dsinclair wrote: > Can you ...
5 years, 4 months ago (2015-08-14 20:28:54 UTC) #5
nduca
some nits https://codereview.chromium.org/1290323003/diff/20001/perf_insights/perf_insights_examples/map_startup_info.html File perf_insights/perf_insights_examples/map_startup_info.html (right): https://codereview.chromium.org/1290323003/diff/20001/perf_insights/perf_insights_examples/map_startup_info.html#newcode12 perf_insights/perf_insights_examples/map_startup_info.html:12: function getProcessName(event) { driveby thought, nonblocking: should ...
5 years, 4 months ago (2015-08-14 20:29:32 UTC) #6
nduca
cna you add a smoketest? the reason to have a smoketest is because i keep ...
5 years, 4 months ago (2015-08-14 20:36:59 UTC) #7
beaudoin
Answered nat, added a test (although I don't think it's a smoke test?) and now ...
5 years, 4 months ago (2015-08-14 22:10:42 UTC) #8
nduca
lgtm with some nits https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insights_examples/map_startup_info.html File perf_insights/perf_insights_examples/map_startup_info.html (right): https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insights_examples/map_startup_info.html#newcode29 perf_insights/perf_insights_examples/map_startup_info.html:29: if (helper.isBrowserProcess(process)) nit: this looks ...
5 years, 4 months ago (2015-08-14 22:28:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1290323003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1290323003/80001
5 years, 4 months ago (2015-08-14 22:56:02 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/1aa2364c5416f712b12827629c170887845127a5
5 years, 4 months ago (2015-08-14 23:03:30 UTC) #13
beaudoin
5 years, 4 months ago (2015-08-18 16:16:54 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insi...
File perf_insights/perf_insights_examples/map_startup_info.html (right):

https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insi...
perf_insights/perf_insights_examples/map_startup_info.html:29: if
(helper.isBrowserProcess(process))
On 2015/08/14 22:28:49, nduca wrote:
> nit: this looks like you're referring to an on an isntance of the helper.
> 
> 
> I think you wanna put up at your exportto line
> 
> var ChromeBrowserHelper = blahblah.ChromeBrowserHelpr
> then on this line you'd say ChromeBrowserHelper.isBrowserProcess(...)

Done.

https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insi...
perf_insights/perf_insights_examples/map_startup_info.html:37: if
(!browser_startup.isEmpty)
On 2015/08/14 22:28:49, nduca wrote:
> i think it would be easier on the data processing side to form the dict all
the
> time.
> 
> the nice thing about the results object is it handles this properly...

Done.

https://codereview.chromium.org/1290323003/diff/60001/perf_insights/perf_insi...
perf_insights/perf_insights_examples/map_startup_info.html:43:
results.addValue(new pi.v.SkipValue(run_info));
On 2015/08/14 22:28:49, nduca wrote:
> you'll wanna say what result name was skipped, e.g  new
> SkipValue('startup_info');

Done.

https://codereview.chromium.org/1290323003/diff/60001/tracing/tracing/extras/...
File tracing/tracing/extras/chrome/chrome_browser_helper.html (right):

https://codereview.chromium.org/1290323003/diff/60001/tracing/tracing/extras/...
tracing/tracing/extras/chrome/chrome_browser_helper.html:26:
ChromeBrowserHelper.isRendererProcess = function(process) {
On 2015/08/14 22:28:49, nduca wrote:
> you'll have to use ChromeRendererHelper for this. Its not actually as easy as
> you think and we need the logic centralized [content shell etc have various
non
> trivial tricks that cause things to get named whackily]

Done.

Powered by Google App Engine
This is Rietveld 408576698