#llvm #coverage #code-coverage #data #instrumentation #file-format #backward

bin+lib llvm_profparser

Parsing and interpretation of llvm coverage profiles and generated data

18 releases (6 breaking)

0.7.0 Aug 5, 2024
0.6.0 May 17, 2024
0.5.0 Apr 28, 2024
0.3.3 Apr 4, 2023
0.1.0-alpha5 Nov 14, 2021

#704 in Parser implementations

Download history 5467/week @ 2024-07-22 5065/week @ 2024-07-29 5249/week @ 2024-08-05 4960/week @ 2024-08-12 5464/week @ 2024-08-19 6076/week @ 2024-08-26 5706/week @ 2024-09-02 4883/week @ 2024-09-09 5072/week @ 2024-09-16 5502/week @ 2024-09-23 4865/week @ 2024-09-30 4706/week @ 2024-10-07 5445/week @ 2024-10-14 5699/week @ 2024-10-21 4858/week @ 2024-10-28 5015/week @ 2024-11-04

21,385 downloads per month
Used in 13 crates (via cargo-tarpaulin)

Apache-2.0

135KB
3K SLoC

llvm-profparser

Build Status License Coverage Status

This is a reasonably complete to parse the llvm instrumentation profraw file format and avoid the need to install and use the llvm-profdata/llvm-cov binaries. It aims to be backwards compatible with as many llvm versions that could be used for coverage data in Rust projects and currently supports the following llvm versions: 11, 12, 13, 14, 15.

This project is not affilated with the llvm-project in anyway! It is merely a parser for some of their file formats to aid interoperability in Rust.

Contributing

All of the functionality required has been implemented, however there are areas to improve in handling unexpected or invalid files. To start fining issues there's a fuzz directory which will undoubtedly reveal some issues that can be fixed. Go into the fuzz directory for guides on how to run.

License

llvm_profparser is currently licensed under the terms of the Apache License (Version 2.0). See LICENSE for details. Test data included from the llvm-project residing in tests/data retains the llvm license. See the llvm-project for details.

Dependencies

~6MB
~109K SLoC