rust/src/tools/coverage-dump
Zalathar 599f95ecc2 coverage: Include the highest counter ID seen in .cov-map dumps
When making changes that have a large impact on coverage counter creation, this
makes it easier to see whether the number of physical counters has changed.

(The highest counter ID seen in coverage maps is not necessarily the same as
the number of physical counters actually used by the instrumented code, but
it's the best approximation we can get from looking only at the coverage maps,
and it should be reasonably accurate in most cases.)
2024-10-11 21:04:37 +11:00
..
src coverage: Include the highest counter ID seen in .cov-map dumps 2024-10-11 21:04:37 +11:00
Cargo.toml Add tool src/tools/coverage-dump for use by some new coverage tests 2023-09-05 11:11:48 +10:00
README.md Add an alternate --demangle mode to coverage-dump 2024-05-31 21:52:45 +10:00

This tool extracts coverage mapping information from an LLVM IR assembly file (.ll), and prints it in a more human-readable form that can be used for snapshot tests.

The output format is mostly arbitrary, so it's OK to change the output as long as any affected tests are also re-blessed. However, the output should be consistent across different executions on different platforms, so avoid printing any information that is platform-specific or non-deterministic.

Demangle mode

When run as coverage-dump --demangle, this tool instead functions as a command-line demangler that can be invoked by llvm-cov.