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

bin+lib llvm_profparser

Parsing and interpretation of llvm coverage profiles and generated data

17 unstable releases (5 breaking)

new 0.6.0 May 17, 2024
0.4.0 Apr 12, 2024
0.3.3 Apr 4, 2023
0.3.2 Mar 29, 2023
0.1.0-alpha5 Nov 14, 2021

#546 in Encoding

Download history 3857/week @ 2024-01-26 3600/week @ 2024-02-02 4383/week @ 2024-02-09 3908/week @ 2024-02-16 3916/week @ 2024-02-23 4952/week @ 2024-03-01 3543/week @ 2024-03-08 3490/week @ 2024-03-15 4863/week @ 2024-03-22 3271/week @ 2024-03-29 3913/week @ 2024-04-05 5061/week @ 2024-04-12 3857/week @ 2024-04-19 5113/week @ 2024-04-26 4411/week @ 2024-05-03 4674/week @ 2024-05-10

18,642 downloads per month
Used in 12 crates (via cargo-tarpaulin)




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.


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.


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.


~110K SLoC