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

Issue 2415963002: [V8][Metric] Initial implementation of the RuntimeStatsMetric (Closed)

Created:
4 years, 2 months ago by fmeawad
Modified:
4 years, 2 months ago
CC:
catapult-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[V8][Metric] Initial implementation of the RuntimeStatsMetric This CL implements a runtime stats metric that extracts the runtime stats info from the V8ThreadSlices up to interactive time. Then these values are grouped by 'type'. Each type is a single value histogram. Histograms are repeated for count and duration. Each 'Type' histogram has a RelatedValueMap that describes the individual runtime stats used to calculate that 'type' data. BUG=catapult:#2938 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/55c4800f013cba6cb2a4b77e8c49b643d56a8873

Patch Set 1 #

Total comments: 40

Patch Set 2 : Address reviewers comments #

Total comments: 30

Patch Set 3 : Add tests and address most of the comments #

Patch Set 4 : Add custom boundaries to the histograms #

Patch Set 5 : Change the number of bins to 50 #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+554 lines, -111 lines) Patch
M tracing/trace_viewer.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A tracing/tracing/extras/v8/runtime_stats_entry.html View 1 2 1 chunk +125 lines, -0 lines 0 comments Download
A tracing/tracing/extras/v8/runtime_stats_entry_test.html View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
M tracing/tracing/metrics/all_metrics.html View 1 chunk +1 line, -0 lines 0 comments Download
A tracing/tracing/metrics/v8/runtime_stats_metric.html View 1 2 3 4 1 chunk +104 lines, -0 lines 0 comments Download
A tracing/tracing/metrics/v8/runtime_stats_metric_test.html View 1 2 1 chunk +194 lines, -0 lines 0 comments Download
M tracing/tracing/ui/extras/v8/runtime_call_stats_table.html View 1 5 chunks +9 lines, -111 lines 0 comments Download

Messages

Total messages: 38 (18 generated)
fmeawad
PTAL
4 years, 2 months ago (2016-10-13 17:47:30 UTC) #6
eakuefner
https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html#newcode3 tracing/tracing/extras/v8/runtime_stats_entry.html:3: Copyright (c) 2016 The Chromium Authors. All rights reserved. ...
4 years, 2 months ago (2016-10-13 19:39:26 UTC) #7
benjhayden
Sorry, bunch of nits. :-) https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html#newcode15 tracing/tracing/extras/v8/runtime_stats_entry.html:15: constructor(name, count, time) { ...
4 years, 2 months ago (2016-10-13 21:18:31 UTC) #8
eakuefner
https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html#newcode102 tracing/tracing/extras/v8/runtime_stats_entry.html:102: Object.getOwnPropertyNames(runtimeCallStats).forEach( On 2016/10/13 at 21:18:30, benjhayden wrote: > On ...
4 years, 2 months ago (2016-10-13 22:05:42 UTC) #9
fmeawad
I addressed the comments, but I am still adding a couple of test files. https://codereview.chromium.org/2415963002/diff/1/tracing/tracing/extras/v8/runtime_stats_entry.html ...
4 years, 2 months ago (2016-10-13 23:31:51 UTC) #10
eakuefner
I think we're almost there; I'd suggest a few more tweaks. https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): ...
4 years, 2 months ago (2016-10-14 17:06:09 UTC) #11
benjhayden
a few nits and questions then lgtm https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/extras/v8/runtime_stats_entry.html#newcode63 tracing/tracing/extras/v8/runtime_stats_entry.html:63: reset(entry) { ...
4 years, 2 months ago (2016-10-14 20:11:22 UTC) #12
nednguyen
https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html File tracing/tracing/metrics/v8/runtime_stats_metric.html (right): https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html#newcode30 tracing/tracing/metrics/v8/runtime_stats_metric.html:30: return diagnostic.value.interactive; It's worth noting that there maybe no ...
4 years, 2 months ago (2016-10-18 23:11:03 UTC) #14
fmeawad
I believe all concerns addressed, PTAL. https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/extras/v8/runtime_stats_entry.html File tracing/tracing/extras/v8/runtime_stats_entry.html (right): https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/extras/v8/runtime_stats_entry.html#newcode18 tracing/tracing/extras/v8/runtime_stats_entry.html:18: // Time in ...
4 years, 2 months ago (2016-10-19 22:04:18 UTC) #15
fmeawad
+cbruni
4 years, 2 months ago (2016-10-19 22:05:32 UTC) #17
lpy
LGTM on tracing/extras/v8 and tracing/ui/extras/v8
4 years, 2 months ago (2016-10-19 22:07:04 UTC) #18
Camillo Bruni
lgtm
4 years, 2 months ago (2016-10-20 14:35:34 UTC) #19
nednguyen
https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html File tracing/tracing/metrics/v8/runtime_stats_metric.html (right): https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html#newcode30 tracing/tracing/metrics/v8/runtime_stats_metric.html:30: return diagnostic.value.interactive; On 2016/10/19 22:04:18, fmeawad wrote: > On ...
4 years, 2 months ago (2016-10-20 15:06:59 UTC) #26
fmeawad
https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html File tracing/tracing/metrics/v8/runtime_stats_metric.html (right): https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html#newcode30 tracing/tracing/metrics/v8/runtime_stats_metric.html:30: return diagnostic.value.interactive; On 2016/10/20 15:06:59, nednguyen wrote: > On ...
4 years, 2 months ago (2016-10-20 15:15:16 UTC) #29
nednguyen
On 2016/10/20 15:15:16, fmeawad wrote: > https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html > File tracing/tracing/metrics/v8/runtime_stats_metric.html (right): > > https://codereview.chromium.org/2415963002/diff/20001/tracing/tracing/metrics/v8/runtime_stats_metric.html#newcode30 > ...
4 years, 2 months ago (2016-10-20 16:44:26 UTC) #30
eakuefner
lgtm
4 years, 2 months ago (2016-10-20 17:00:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2415963002/100001
4 years, 2 months ago (2016-10-20 17:27:55 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/55c4800f013cba6cb2a4b77e8c49b643d56a8873
4 years, 2 months ago (2016-10-20 17:52:10 UTC) #36
aiolos (Not reviewing)
A revert of this CL (patchset #6 id:100001) has been created in https://chromiumcodereview.appspot.com/2439953002/ by aiolos@chromium.org. ...
4 years, 2 months ago (2016-10-20 22:05:06 UTC) #37
eakuefner
4 years, 2 months ago (2016-10-20 22:15:50 UTC) #38
Message was sent while issue was closed.
On 2016/10/20 at 22:05:06, aiolos wrote:
> A revert of this CL (patchset #6 id:100001) has been created in
https://chromiumcodereview.appspot.com/2439953002/ by aiolos@chromium.org.
> 
> The reason for reverting is: This is causing test failures on the CQ and
locally.
> 
> Link to bot with CQ failures:
>
https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Li...
> 
> From a local run on linux:
> 
> TypeError: tr.v.ValueSet is not a constructor
>     at Object.testFn_
(http://127.0.0.1:8003/tracing/metrics/v8/runtime_stats_metric_test.html:179:18)
>     at Object.run
(http://127.0.0.1:8003/tracing/base/unittest/test_case.html:79:19)
>     at Object.<anonymous>
(http://127.0.0.1:8003/tracing/base/unittest/test_runner.html:218:52)
>     at Object.runCurrentTestCase_
(http://127.0.0.1:8003/tracing/base/unittest/test_runner.html:216:14)
>     at Object.runOneTestCase_
(http://127.0.0.1:8003/tracing/base/unittest/test_runner.html:169:12).

Remarkably, this raced with https://codereview.chromium.org/2424933003 causing
this failure not to be caught by the CQ.

Powered by Google App Engine
This is Rietveld 408576698