#llvm #coverage #data #backward #profile #projects #interpretation

bin+lib llvm_profparser

Parsing and interpretation of llvm coverage profiles and generated data

15 releases

new 0.4.0 Apr 12, 2024
0.3.3 Apr 4, 2023
0.3.2 Mar 29, 2023
0.3.0 Sep 26, 2022
0.1.0-alpha5 Nov 14, 2021

#551 in Encoding

Download history 2627/week @ 2023-12-23 4774/week @ 2023-12-30 7094/week @ 2024-01-06 6603/week @ 2024-01-13 4295/week @ 2024-01-20 3938/week @ 2024-01-27 3571/week @ 2024-02-03 4365/week @ 2024-02-10 3785/week @ 2024-02-17 3960/week @ 2024-02-24 4906/week @ 2024-03-02 3486/week @ 2024-03-09 3949/week @ 2024-03-16 4445/week @ 2024-03-23 3582/week @ 2024-03-30 3129/week @ 2024-04-06

15,553 downloads per month
Used in 12 crates (via cargo-tarpaulin)

Apache-2.0

130KB
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
~108K SLoC