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

Issue 2296243002: [RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. (Closed)

Created:
4 years, 3 months ago by fmeawad
Modified:
4 years, 3 months ago
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[RuntimeCallStats] Move tracing runtime instrumentation closer to the original version. After we landed the tracing runtime call stats, which gave us a lot of V8 insight in tracing, we noticed that there is some arising issues and discrepancies. Issues include: Missing trace events, that happened due to transforming those trace events into runtime calls Discrepancies include: Missing categories in Runtime call stats like GC, because we are not handling the Scoped runtime calls properly in the tracing version. To reduce/eliminate those issue, we are taking a small step back. We are unifying the RuntimeStats code and using the original one. That would allow us to use all the original probes but emit trace events from them. We are also putting back the trace-events in their place. The output from both system should be intact (Except of the addition of the missing trace-events). Also as a byproduct, we are reducing the number of context scopes by half since we are using the same scope as runtime call stats. As a follow up to this CL, we will address the non-scoped Runtime Call Stats (mainly in GC). BUG=642373 Committed: https://crrev.com/e5ba156d887e08f3ae3d29aa35e669f19a7dcb97 Cr-Commit-Position: refs/heads/master@{#39180}

Patch Set 1 #

Patch Set 2 : Remove code duplication between counters and trace-event concerning the RuntimeCallStats table #

Patch Set 3 : use RuntimeCallStats instead of isolate #

Patch Set 4 : Remove the gc-tracer instrumentation #

Patch Set 5 : Fix the build #

Patch Set 6 : Remove an extra call to tracing runtime call stats #

Total comments: 2

Patch Set 7 : Address lpy comments #

Total comments: 4

Patch Set 8 : Add cbruni's comments #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -359 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -9 lines 0 comments Download
M src/api-arguments.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M src/api-arguments-inl.h View 1 2 3 4 5 6 7 8 7 chunks +0 lines, -16 lines 0 comments Download
M src/arguments.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/builtins/builtins-utils.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 10 chunks +0 lines, -22 lines 0 comments Download
M src/counters.h View 1 2 3 4 5 6 7 8 5 chunks +80 lines, -38 lines 0 comments Download
M src/counters.cc View 1 3 chunks +43 lines, -7 lines 0 comments Download
M src/counters-inl.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/deoptimizer.cc View 1 2 3 4 3 chunks +0 lines, -6 lines 0 comments Download
M src/execution.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M src/heap/gc-tracer.cc View 1 2 3 4 4 chunks +13 lines, -5 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M src/isolate.h View 1 2 3 4 3 chunks +0 lines, -5 lines 0 comments Download
M src/lookup.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -14 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -4 lines 0 comments Download
M src/tracing/trace-event.h View 1 2 3 4 5 6 4 chunks +6 lines, -127 lines 0 comments Download
M src/tracing/trace-event.cc View 1 2 4 chunks +6 lines, -86 lines 0 comments Download

Messages

Total messages: 44 (31 generated)
fmeawad
lpy: Can you take an initial look?
4 years, 3 months ago (2016-09-01 21:27:04 UTC) #10
lpy
LGTM with one comment. https://codereview.chromium.org/2296243002/diff/100001/src/tracing/trace-event.h File src/tracing/trace-event.h (right): https://codereview.chromium.org/2296243002/diff/100001/src/tracing/trace-event.h#newcode14 src/tracing/trace-event.h:14: #include "src/isolate.h" Can we make ...
4 years, 3 months ago (2016-09-01 22:46:06 UTC) #14
fmeawad
cbruni, PTAL. https://codereview.chromium.org/2296243002/diff/100001/src/tracing/trace-event.h File src/tracing/trace-event.h (right): https://codereview.chromium.org/2296243002/diff/100001/src/tracing/trace-event.h#newcode14 src/tracing/trace-event.h:14: #include "src/isolate.h" On 2016/09/01 22:46:06, lpy wrote: ...
4 years, 3 months ago (2016-09-01 22:57:47 UTC) #18
Camillo Bruni
LGTM with nits. You can address my comments in a follow-up CL. https://codereview.chromium.org/2296243002/diff/120001/src/counters.h File src/counters.h ...
4 years, 3 months ago (2016-09-02 00:30:50 UTC) #22
fmeawad
Comments addressed, Adding reviewers: bmeurer: src/full-codegen, src/interpreter ulan: src/heap adamk: src/parsing PTAL. https://codereview.chromium.org/2296243002/diff/120001/src/counters.h File src/counters.h ...
4 years, 3 months ago (2016-09-02 18:34:21 UTC) #24
fmeawad
(Actually adding the reviewers)
4 years, 3 months ago (2016-09-02 18:34:58 UTC) #26
adamk
lgtm for parsing/
4 years, 3 months ago (2016-09-02 18:36:25 UTC) #29
Benedikt Meurer
LGTM on fullcodegen and interpreter.
4 years, 3 months ago (2016-09-03 17:56:34 UTC) #36
ulan
heap lgtm
4 years, 3 months ago (2016-09-05 07:48:16 UTC) #37
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/2296243002/160001
4 years, 3 months ago (2016-09-05 15:13:33 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-05 15:39:44 UTC) #41
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/e5ba156d887e08f3ae3d29aa35e669f19a7dcb97 Cr-Commit-Position: refs/heads/master@{#39180}
4 years, 3 months ago (2016-09-05 15:40:21 UTC) #43
fmeawad
4 years, 3 months ago (2016-09-05 21:32:57 UTC) #44
Message was sent while issue was closed.
A revert of this CL (patchset #9 id:160001) has been created in
https://codereview.chromium.org/2311983002/ by fmeawad@chromium.org.

The reason for reverting is: There is a wrong scoping check making the tracing
version not working..

Powered by Google App Engine
This is Rietveld 408576698