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

Issue 2686063002: [debugger] add precise mode for code coverage. (Closed)

Created:
3 years, 10 months ago by Yang
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, Yang, kozy, fmeawad
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[debugger] add precise mode for code coverage. Collecting precise invocation counts need to be explicitly enabled. Once enabled, we disable optimization (optimized code does not increment invocation count, and may inline callees), and make sure feedback vectors interesting for code coverage is not garbage-collected. R=hpayer@chromium.org, jgruber@chromium.org BUG=v8:5808 Review-Url: https://codereview.chromium.org/2686063002 Cr-Commit-Position: refs/heads/master@{#43082} Committed: https://chromium.googlesource.com/v8/v8/+/8422e25bb26449e0cf9831adafec48ee4e592278

Patch Set 1 #

Total comments: 12

Patch Set 2 : address comments #

Patch Set 3 : fix flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -18 lines) Patch
M src/debug/debug-coverage.h View 1 2 chunks +5 lines, -1 line 0 comments Download
M src/debug/debug-coverage.cc View 1 3 chunks +58 lines, -11 lines 0 comments Download
M src/feedback-vector.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/feedback-vector.cc View 2 chunks +16 lines, -1 line 0 comments Download
M src/feedback-vector-inl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M src/isolate.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 chunks +11 lines, -3 lines 0 comments Download
M src/objects.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime/runtime-debug.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
A test/mjsunit/code-coverage-precise.js View 1 2 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
Yang
Please take a look.
3 years, 10 months ago (2017-02-09 11:47:35 UTC) #2
jgruber
lgtm with comments https://codereview.chromium.org/2686063002/diff/1/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): https://codereview.chromium.org/2686063002/diff/1/src/debug/debug-coverage.cc#newcode169 src/debug/debug-coverage.cc:169: vectors.push_back(Handle<FeedbackVector>(vector, isolate)); Nit: emplace_back https://codereview.chromium.org/2686063002/diff/1/src/debug/debug-coverage.cc#newcode174 src/debug/debug-coverage.cc:174: ...
3 years, 10 months ago (2017-02-09 16:08:48 UTC) #3
Yang
https://codereview.chromium.org/2686063002/diff/1/src/debug/debug-coverage.cc File src/debug/debug-coverage.cc (right): https://codereview.chromium.org/2686063002/diff/1/src/debug/debug-coverage.cc#newcode169 src/debug/debug-coverage.cc:169: vectors.push_back(Handle<FeedbackVector>(vector, isolate)); On 2017/02/09 16:08:47, jgruber wrote: > Nit: ...
3 years, 10 months ago (2017-02-09 17:42:15 UTC) #4
Hannes Payer (out of office)
lgtm
3 years, 10 months ago (2017-02-09 17:44:15 UTC) #5
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/2686063002/20001
3 years, 10 months ago (2017-02-09 19:04:09 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/12778) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 19:22:59 UTC) #10
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/2686063002/40001
3 years, 10 months ago (2017-02-10 07:28:40 UTC) #13
commit-bot: I haz the power
3 years, 10 months ago (2017-02-10 08:21:10 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/8422e25bb26449e0cf9831adafec48ee4e5...

Powered by Google App Engine
This is Rietveld 408576698