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

Issue 2766573003: [debug] introduce precise binary code coverage. (Closed)

Created:
3 years, 9 months ago by Yang
Modified:
3 years, 9 months ago
Reviewers:
caseq, pfeldman, jgruber
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[debug] introduce precise binary code coverage. With precise binary code coverage, the reported count is either 0 or 1. We only report 1 the first time we collect coverage data after the function has been executed. Since we do not care about the accurate execution count, we can optimize the function once it has been executed once. Also change best effort coverage to be implicitly binary. R=caseq@chromium.org, jgruber@chromium.org, pfeldman@chromium.org BUG=v8:5808 Review-Url: https://codereview.chromium.org/2766573003 Cr-Commit-Position: refs/heads/master@{#44074} Committed: https://chromium.googlesource.com/v8/v8/+/d71ef941edca6ff99850a71ac146d9bbae5e61b7

Patch Set 1 #

Total comments: 3

Patch Set 2 : address comments #

Total comments: 1

Patch Set 3 : rebase #

Patch Set 4 : Address comments and make best-effort coverage implicitly binary. #

Patch Set 5 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+645 lines, -109 lines) Patch
M src/api.cc View 1 2 1 chunk +21 lines, -12 lines 0 comments Download
M src/d8.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/debug/debug-coverage.h View 1 2 3 1 chunk +12 lines, -3 lines 0 comments Download
M src/debug/debug-coverage.cc View 1 2 3 6 chunks +47 lines, -12 lines 0 comments Download
M src/debug/debug-interface.h View 1 2 3 3 chunks +20 lines, -12 lines 0 comments Download
M src/inspector/js_protocol.json View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/inspector/v8-profiler-agent-impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/inspector/v8-profiler-agent-impl.cc View 1 2 3 4 chunks +21 lines, -11 lines 0 comments Download
M src/isolate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.h View 2 chunks +4 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +5 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-debug.cc View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M test/cctest/test-debug.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/inspector/cpu-profiler/coverage.js View 1 2 3 6 chunks +73 lines, -19 lines 0 comments Download
M test/inspector/cpu-profiler/coverage-expected.txt View 1 2 3 19 chunks +418 lines, -30 lines 0 comments Download
M test/mjsunit/code-coverage-ad-hoc.js View 1 2 3 4 4 chunks +5 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (17 generated)
Yang
3 years, 9 months ago (2017-03-21 11:42:09 UTC) #1
jgruber
lgtm https://codereview.chromium.org/2766573003/diff/1/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (left): https://codereview.chromium.org/2766573003/diff/1/src/debug/debug-coverage.cc#oldcode68 src/debug/debug-coverage.cc:68: // Feedback vectors are already listed to prevent ...
3 years, 9 months ago (2017-03-21 16:54:35 UTC) #6
Yang
Addressed comments. Pavel, I need your review for the protocol change. https://codereview.chromium.org/2766573003/diff/1/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): ...
3 years, 9 months ago (2017-03-22 06:46:00 UTC) #7
pfeldman
https://codereview.chromium.org/2766573003/diff/20001/src/inspector/js_protocol.json File src/inspector/js_protocol.json (right): https://codereview.chromium.org/2766573003/diff/20001/src/inspector/js_protocol.json#newcode906 src/inspector/js_protocol.json:906: { "name": "binary", "type": "boolean", "optional": true, "description": "Collect ...
3 years, 9 months ago (2017-03-22 17:29:57 UTC) #8
Yang
On 2017/03/22 17:29:57, pfeldman wrote: > https://codereview.chromium.org/2766573003/diff/20001/src/inspector/js_protocol.json > File src/inspector/js_protocol.json (right): > > https://codereview.chromium.org/2766573003/diff/20001/src/inspector/js_protocol.json#newcode906 > ...
3 years, 9 months ago (2017-03-23 06:52:20 UTC) #10
pfeldman
lgtm
3 years, 9 months ago (2017-03-23 17:13:36 UTC) #19
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/2766573003/80001
3 years, 9 months ago (2017-03-23 17:21:42 UTC) #22
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 17:23:26 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/d71ef941edca6ff99850a71ac146d9bbae5...

Powered by Google App Engine
This is Rietveld 408576698