lcov-util

Crates.io Rust CI codecov LICENSE

Utility commands to manipulate and analyze LCOV tracefiles blazingly fast.

[LCOV] is a graphical front-end for coverage testing tool [gcov]. It collects gcov data for multiple source files and stores them into the file called as "tracefile".

The purpose of this crate is to operate the LCOV tracefile faster than the original LCOV Perl implementation.

Install

console $ cargo install lcov-util

Performance

Merge LCOV tracefiles

Comparing the execution of merging LCOV tracefiles, between 3 programs:

with 3 datasets (generated by mkinfo tool from LCOV repository):

| | small | medium | large | | ---------------- | ----- | ------ | ------- | | lcov 1.15 | 0.24s | 2.42s | 22.18s | | lcov master | 0.23s | 2.43s | 22.11s | | lcov-merge | 0.01s | 0.20s | 2.74s |

In this benchmark, lcov-merge is 10-20x faster than lcov 1.15 / lcov-master.

See benchsuite directory for details.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in lcov by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.