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

Issue 1533653003: Add SourceReport, a class for generating Dart source-level reports. (Closed)

Created:
5 years ago by turnidge
Modified:
4 years, 11 months ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add SourceReport, a class for generating Dart source-level reports. These reports provide information tied to token positions in the Dart source program. SourceReport can generate multiple kinds of reports. Right now it implements code coverage and call site reports. In the future it could provide, for example, valid breakpoint sites or source-level profiles. Scripts are refered to by index within the report and a script table is tacked on the end. This avoids a bit of duplication. In a future cl I will expose this reporting through the vm service. After that, we can remove our older coverage/callsite code. ---------- Very simple, sample coverage report: { "type": "SourceReport", "ranges": [ { "scriptIndex": 0, "startPos": 0, "endPos": 4, "compiled": true, "coverage": { "hits": [], "misses": [] } }, { "scriptIndex": 0, "startPos": 6, "endPos": 10, "compiled": false }, { "scriptIndex": 0, "startPos": 12, "endPos": 39, "compiled": true, "coverage": { "hits": [ 23 ], "misses": [ 32 ] } } ], "scripts": [ { "type": "@Script", "fixedId": true, "id": "libraries\/15\/scripts\/test-lib", "uri": "test-lib", "_kind": "script" } ] } R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/26af34a1b3a912f16f52c69723ca99789d88153b

Patch Set 1 #

Patch Set 2 : tweaks #

Total comments: 12

Patch Set 3 : code review #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+872 lines, -1 line) Patch
M runtime/vm/coverage.cc View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 2 chunks +29 lines, -1 line 0 comments Download
A runtime/vm/source_report.h View 1 2 1 chunk +106 lines, -0 lines 0 comments Download
A runtime/vm/source_report.cc View 1 2 1 chunk +318 lines, -0 lines 0 comments Download
A runtime/vm/source_report_test.cc View 1 2 1 chunk +412 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
turnidge
5 years ago (2015-12-17 20:38:33 UTC) #2
Cutch
https://codereview.chromium.org/1533653003/diff/20001/runtime/vm/source_report.cc File runtime/vm/source_report.cc (right): https://codereview.chromium.org/1533653003/diff/20001/runtime/vm/source_report.cc#newcode95 runtime/vm/source_report.cc:95: const Library& lib) { indent two spaces https://codereview.chromium.org/1533653003/diff/20001/runtime/vm/source_report.cc#newcode174 runtime/vm/source_report.cc:174: ...
5 years ago (2015-12-17 21:31:07 UTC) #3
turnidge
PTAL https://codereview.chromium.org/1533653003/diff/20001/runtime/vm/source_report.cc File runtime/vm/source_report.cc (right): https://codereview.chromium.org/1533653003/diff/20001/runtime/vm/source_report.cc#newcode95 runtime/vm/source_report.cc:95: const Library& lib) { On 2015/12/17 21:31:06, Cutch ...
5 years ago (2015-12-17 21:48:01 UTC) #4
Cutch
lgtm
5 years ago (2015-12-17 21:50:04 UTC) #5
turnidge
4 years, 11 months ago (2016-01-04 18:56:57 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
26af34a1b3a912f16f52c69723ca99789d88153b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698