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

Issue 2503183002: [Tracing] Implement IC statistics in tracing. (Closed)

Created:
4 years, 1 month ago by lpy
Modified:
3 years, 9 months ago
CC:
Michael Hablich, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Implement IC statistics in tracing. This patch introduces: 1. ICStats class to store ic statistics items produced by V8, 2. A disabled by default tracing category v8.ic_stats, 3. An trace event V8.ICStats that contains ic statistics items in args, We store ic statistics items in an array until the array is full to reduce the number of trace events. TBR=jkummerow@chromium.org,ishell@chromium.org Committed: https://crrev.com/0a3c8fc3ef7cf2c408244d9b67349c1aac1265bb Cr-Commit-Position: refs/heads/master@{#41559}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Cache script name #

Patch Set 4 : update #

Patch Set 5 : add cache for function name #

Total comments: 31

Patch Set 6 : Address cbruni's comments #

Total comments: 2

Patch Set 7 : Remove unnecessary flag check #

Patch Set 8 : update #

Patch Set 9 : update #

Total comments: 6

Patch Set 10 : Remove unnecessary cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+463 lines, -18 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/code-stubs.cc View 1 2 3 4 5 6 2 chunks +15 lines, -1 line 0 comments Download
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M src/frames.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 7 8 9 3 chunks +46 lines, -1 line 0 comments Download
M src/ic/ic.cc View 1 2 3 4 5 6 8 chunks +96 lines, -16 lines 0 comments Download
M src/ic/ic-state.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ic/ic-state.cc View 1 chunk +17 lines, -0 lines 0 comments Download
A src/ic/ic-stats.h View 1 2 3 4 5 6 7 8 9 1 chunk +77 lines, -0 lines 0 comments Download
A src/ic/ic-stats.cc View 1 2 3 4 5 6 7 8 9 1 chunk +144 lines, -0 lines 0 comments Download
M src/tracing/tracing-category-observer.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M src/type-hints.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/type-hints.cc View 1 2 chunks +47 lines, -0 lines 0 comments Download
M src/v8.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 74 (62 generated)
lpy
PTAL. This will be the first version of IC stats in tracing. We plan to ...
4 years ago (2016-12-02 01:15:00 UTC) #29
Camillo Bruni
first round of comments :) https://codereview.chromium.org/2503183002/diff/100001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2503183002/diff/100001/src/code-stubs.cc#newcode2296 src/code-stubs.cc:2296: if (FLAG_ic_stats & no ...
4 years ago (2016-12-02 12:12:56 UTC) #30
lpy
Thanks for the comments, ptal. The change in traced-value.[h|cc] will be landed in separate CL. ...
4 years ago (2016-12-05 17:49:11 UTC) #37
Camillo Bruni
LGTM with nit https://codereview.chromium.org/2503183002/diff/100001/src/code-stubs.cc File src/code-stubs.cc (right): https://codereview.chromium.org/2503183002/diff/100001/src/code-stubs.cc#newcode2306 src/code-stubs.cc:2306: } else if (FLAG_ic_stats) { On ...
4 years ago (2016-12-05 20:13:50 UTC) #40
lpy
alph@ pointed out that we shouldn't output number that would be larger than 2^52 to ...
4 years ago (2016-12-05 22:38:11 UTC) #48
fmeawad
Some nits. https://codereview.chromium.org/2503183002/diff/220001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2503183002/diff/220001/src/flag-definitions.h#newcode809 src/flag-definitions.h:809: "inline cache state transitions statistics for tracing ...
4 years ago (2016-12-06 00:59:12 UTC) #58
lpy
https://codereview.chromium.org/2503183002/diff/220001/src/flag-definitions.h File src/flag-definitions.h (right): https://codereview.chromium.org/2503183002/diff/220001/src/flag-definitions.h#newcode809 src/flag-definitions.h:809: "inline cache state transitions statistics for tracing only") On ...
4 years ago (2016-12-06 19:36:48 UTC) #61
fmeawad
lgtm
4 years ago (2016-12-06 22:30:56 UTC) #64
lpy
jkummerow@, ishell@, gentle ping for review.
4 years ago (2016-12-07 02:15:56 UTC) #65
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/2503183002/240001
4 years ago (2016-12-07 16:56:19 UTC) #69
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years ago (2016-12-07 16:58:31 UTC) #72
commit-bot: I haz the power
4 years ago (2016-12-07 16:58:56 UTC) #74
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0a3c8fc3ef7cf2c408244d9b67349c1aac1265bb
Cr-Commit-Position: refs/heads/master@{#41559}

Powered by Google App Engine
This is Rietveld 408576698