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

Issue 2187693002: [Tracing] Embed V8 runtime call stats into tracing. (Closed)

Created:
4 years, 4 months ago by lpy
Modified:
4 years, 4 months ago
CC:
oth, rmcilroy, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Reland][Tracing] Embed V8 runtime call stats into tracing. Currently we have V8 RuntimeCallStats that is independently from tracing when running d8 with flag --runtime_call_stats. This patch embeds V8 runtime call stats into tracing, by having a global table of runtime call counters each isolate, resetting the table each time we enter a top level trace event, and dumping the table for each top level trace event. This will make trace file more compat, as well as enable runtime call stats in tracing system. This patch adds ~5% overhead to V8 when the category is enabled, we measure the overhead by running a script when category is enabled. BUG=v8:5089 Committed: https://crrev.com/d014866173eaa2b548c566217b2c94b1d49385fa Committed: https://crrev.com/1ca3b73bba4a7253ca8eeef39321d70e7d414331 Committed: https://crrev.com/3f936a5b17754783e92d2146eaf66c88a78ee45b Committed: https://crrev.com/7a3631e7e12fe0e5038d80c58f3f491c61977b95 Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#38270} Cr-Original-Original-Commit-Position: refs/heads/master@{#38314} Cr-Original-Commit-Position: refs/heads/master@{#38403} Cr-Commit-Position: refs/heads/master@{#38510}

Patch Set 1 #

Total comments: 14

Patch Set 2 : address cbruni's comments #

Total comments: 3

Patch Set 3 : move scope to non-inlined function #

Patch Set 4 : update #

Total comments: 6

Patch Set 5 : address cbruni's comments #

Patch Set 6 : Fix dangling pointer issue #

Patch Set 7 : Fix TSAN and ASAN failure #

Patch Set 8 : Fix TSAN and ASAN failure #

Patch Set 9 : Fix memory leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+407 lines, -50 lines) Patch
M src/api.cc View 1 2 3 4 5 6 7 8 10 chunks +16 lines, -6 lines 0 comments Download
M src/api-arguments.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M src/api-arguments-inl.h View 5 chunks +11 lines, -0 lines 0 comments Download
M src/arguments.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M src/builtins/builtins-utils.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 10 chunks +22 lines, -16 lines 0 comments Download
M src/counters.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/counters.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/d8.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M src/deoptimizer.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M src/execution.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/ic/ic.cc View 1 2 3 4 5 6 7 8 15 chunks +0 lines, -15 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M src/lookup.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -2 lines 0 comments Download
M src/tracing/trace-event.h View 1 2 3 4 5 6 7 8 4 chunks +174 lines, -0 lines 0 comments Download
M src/tracing/trace-event.cc View 1 2 3 4 5 6 7 8 1 chunk +121 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 85 (57 generated)
lpy
PTAL.
4 years, 4 months ago (2016-07-26 21:22:05 UTC) #4
Camillo Bruni
nice work! I added some comments mainly concerning performance. I spend quite some time figuring ...
4 years, 4 months ago (2016-07-27 08:29:07 UTC) #7
lpy
Thanks, I updated the CL. https://codereview.chromium.org/2187693002/diff/1/src/arguments.h File src/arguments.h (right): https://codereview.chromium.org/2187693002/diff/1/src/arguments.h#newcode103 src/arguments.h:103: isolate, &tracing::TraceEventStatsTable::Name); \ On ...
4 years, 4 months ago (2016-07-27 19:58:38 UTC) #10
Camillo Bruni
machenbach@ PTAL gyp changes
4 years, 4 months ago (2016-07-28 07:15:49 UTC) #14
Michael Achenbach
Gyp lg. No GN changes required?
4 years, 4 months ago (2016-07-28 07:20:33 UTC) #15
lpy
On 2016/07/28 07:20:33, Michael Achenbach (slow) wrote: > Gyp lg. No GN changes required? It's ...
4 years, 4 months ago (2016-07-28 18:20:38 UTC) #16
fmeawad
https://codereview.chromium.org/2187693002/diff/20001/src/tracing/trace-event.cc File src/tracing/trace-event.cc (right): https://codereview.chromium.org/2187693002/diff/20001/src/tracing/trace-event.cc#newcode128 src/tracing/trace-event.cc:128: buffer_ << "\"END\":[]}"; Given that we are trying to ...
4 years, 4 months ago (2016-07-28 21:14:31 UTC) #17
Camillo Bruni
https://codereview.chromium.org/2187693002/diff/1/src/arguments.h File src/arguments.h (right): https://codereview.chromium.org/2187693002/diff/1/src/arguments.h#newcode103 src/arguments.h:103: isolate, &tracing::TraceEventStatsTable::Name); \ Oh yes of course you don't ...
4 years, 4 months ago (2016-07-29 08:56:16 UTC) #18
lpy
Thanks, I updated the CL. PTAL. https://codereview.chromium.org/2187693002/diff/20001/src/tracing/trace-event.cc File src/tracing/trace-event.cc (right): https://codereview.chromium.org/2187693002/diff/20001/src/tracing/trace-event.cc#newcode140 src/tracing/trace-event.cc:140: if (V8_UNLIKELY(TRACE_EVENT_RUNTIME_CALL_STATS_TRACING_ENABLED())) { ...
4 years, 4 months ago (2016-08-01 07:13:57 UTC) #23
Camillo Bruni
LGTM with nits https://codereview.chromium.org/2187693002/diff/60001/src/builtins/builtins-utils.h File src/builtins/builtins-utils.h (right): https://codereview.chromium.org/2187693002/diff/60001/src/builtins/builtins-utils.h#newcode97 src/builtins/builtins-utils.h:97: FLAG_runtime_call_stats)) { \ nice! https://codereview.chromium.org/2187693002/diff/60001/src/counters.h File ...
4 years, 4 months ago (2016-08-01 07:43:55 UTC) #26
lpy
Thanks, I updated the CL. + bmeurer@ for full-codegen/ + adamk@ for parsing/ + rmcilroy@ ...
4 years, 4 months ago (2016-08-01 18:17:56 UTC) #30
adamk
lgtm for parsing/
4 years, 4 months ago (2016-08-01 19:17:58 UTC) #33
Benedikt Meurer
LGTM for fullcodegen and ignition.
4 years, 4 months ago (2016-08-02 05:17:54 UTC) #34
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/2187693002/100001
4 years, 4 months ago (2016-08-03 06:09:29 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-03 06:12:27 UTC) #44
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d014866173eaa2b548c566217b2c94b1d49385fa Cr-Commit-Position: refs/heads/master@{#38270}
4 years, 4 months ago (2016-08-03 06:13:43 UTC) #46
Yang
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2203913004/ by yangguo@chromium.org. ...
4 years, 4 months ago (2016-08-03 07:25:12 UTC) #48
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/2187693002/140001
4 years, 4 months ago (2016-08-03 20:42:53 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-03 20:45:00 UTC) #58
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/1ca3b73bba4a7253ca8eeef39321d70e7d414331 Cr-Commit-Position: refs/heads/master@{#38314}
4 years, 4 months ago (2016-08-03 20:48:50 UTC) #60
lpy
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2200373003/ by lpy@chromium.org. ...
4 years, 4 months ago (2016-08-03 21:42:39 UTC) #61
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/2187693002/140001
4 years, 4 months ago (2016-08-05 21:57:59 UTC) #64
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-08-05 22:21:58 UTC) #66
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/3f936a5b17754783e92d2146eaf66c88a78ee45b Cr-Commit-Position: refs/heads/master@{#38403}
4 years, 4 months ago (2016-08-05 22:24:54 UTC) #68
Michael Achenbach
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2221853002/ by machenbach@chromium.org. ...
4 years, 4 months ago (2016-08-08 06:45:54 UTC) #69
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/2187693002/160001
4 years, 4 months ago (2016-08-10 01:16:37 UTC) #81
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-10 01:18:49 UTC) #83
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 01:19:11 UTC) #85
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/7a3631e7e12fe0e5038d80c58f3f491c61977b95
Cr-Commit-Position: refs/heads/master@{#38510}

Powered by Google App Engine
This is Rietveld 408576698