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

Issue 2689493002: [debugger] implement per-function code coverage. (Closed)

Created:
3 years, 10 months ago by Yang
Modified:
3 years, 10 months ago
Reviewers:
jgruber
CC:
v8-reviews_googlegroups.com, kozy, fmeawad
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] implement per-function code coverage. Collect code coverage from the available invocation counts. The granularity is at function level, and invocation counts may be lost to GC. Coverage::Collect returns a std::vector of Coverage::ScriptData. Each ScriptData contains a script ID and a std::vector of Coverage::RangeEntry. Each RangeEntry consists of a end position and the invocation count. The start position is implicit from the end position of the previous RangeEntry, or 0 if it's the first RangeEntry. R=jgruber@chromium.org BUG=v8:5808 Review-Url: https://codereview.chromium.org/2689493002 Cr-Commit-Position: refs/heads/master@{#43072} Committed: https://chromium.googlesource.com/v8/v8/+/058d7ab7f4644b41be3eacf4f9e3f858df89ff4b

Patch Set 1 #

Patch Set 2 : fix includes #

Patch Set 3 : fix tests #

Patch Set 4 : fix one more test #

Patch Set 5 : one more fix, and rename #

Total comments: 11

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -24 lines) Patch
M BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A src/debug/debug-coverage.h View 1 2 3 4 5 1 chunk +39 lines, -0 lines 0 comments Download
A src/debug/debug-coverage.cc View 1 2 3 4 5 1 chunk +144 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 5 3 chunks +43 lines, -4 lines 0 comments Download
M src/v8.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
D test/debugger/debug/debug-scripts-throw.js View 1 2 3 1 chunk +0 lines, -12 lines 0 comments Download
A test/mjsunit/code-coverage-ad-hoc.js View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
D test/mjsunit/regress/regress-crbug-471702.js View 1 2 1 chunk +0 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (24 generated)
Yang
Please take a look.
3 years, 10 months ago (2017-02-09 11:35:52 UTC) #13
jgruber
lgtm w/ a couple of nits https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc#newcode56 src/debug/debug-coverage.cc:56: std::vector<Coverage::RangeEntry> Finish() { ...
3 years, 10 months ago (2017-02-09 15:43:23 UTC) #18
jgruber
https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc#newcode131 src/debug/debug-coverage.cc:131: result.push_back({script->id(), builder.Finish()}); On 2017/02/09 15:43:22, jgruber wrote: > I ...
3 years, 10 months ago (2017-02-09 15:53:22 UTC) #19
Yang
https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc#newcode56 src/debug/debug-coverage.cc:56: std::vector<Coverage::RangeEntry> Finish() { return std::move(entries_); } On 2017/02/09 15:43:22, ...
3 years, 10 months ago (2017-02-09 17:11:01 UTC) #20
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/2689493002/100001
3 years, 10 months ago (2017-02-09 17:11:17 UTC) #23
Yang
On 2017/02/09 17:11:01, Yang wrote: > https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc > File src/debug/debug-coverage.cc (right): > > https://codereview.chromium.org/2689493002/diff/80001/src/debug/debug-coverage.cc#newcode56 > ...
3 years, 10 months ago (2017-02-09 17:11:31 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/20717) v8_linux64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 17:39:06 UTC) #26
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/2689493002/100001
3 years, 10 months ago (2017-02-09 17:44:34 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_rel_ng/builds/20721) v8_linux64_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 18:02:33 UTC) #30
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/2689493002/100001
3 years, 10 months ago (2017-02-09 18:37:34 UTC) #32
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 19:00:56 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/v8/v8/+/058d7ab7f4644b41be3eacf4f9e3f858df8...

Powered by Google App Engine
This is Rietveld 408576698