• Jakob Gruber's avatar
    [coverage] Extend block coverage tracing · 8e13de18
    Jakob Gruber authored
    This extends --trace-block-coverage to output not only all raw coverage
    slots, but also a detailed trace of all information that is generated by
    coverage collection (i.e. after filtering and transforming collected
    counts and ranges).
    
    Example output:
    
    Coverage for function='GetCoverage', SFI=0x3d23ea6dfb59,
    has_nonempty_source_range=1, function_is_relevant=1
    {start: 278, end: 441, count: 1}
    {start: 357, end: 440, count: 0}
    
    Bug: v8:6000,v8:9212
    Change-Id: Ide09eb40999541df97409d0682a505ee0070b3a6
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1771777
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63437}
    8e13de18
debug-coverage.cc 26.3 KB