#coverage #llvm

bin+lib llvm_profparser

Parsing and interpretation of llvm coverage profiles and generated data

14 releases

0.3.3 Apr 4, 2023
0.3.2 Mar 29, 2023
0.3.1 Jan 23, 2023
0.3.0 Sep 26, 2022
0.1.0-alpha5 Nov 14, 2021

#617 in Encoding

Download history 3289/week @ 2023-01-31 3506/week @ 2023-02-07 3351/week @ 2023-02-14 3498/week @ 2023-02-21 3200/week @ 2023-02-28 4109/week @ 2023-03-07 4036/week @ 2023-03-14 3911/week @ 2023-03-21 4333/week @ 2023-03-28 3578/week @ 2023-04-04 4019/week @ 2023-04-11 3736/week @ 2023-04-18 3334/week @ 2023-04-25 3198/week @ 2023-05-02 3406/week @ 2023-05-09 3268/week @ 2023-05-16

13,802 downloads per month
Used in 3 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.


~101K SLoC