Amanieu / minicov

Code coverage support for Rust `no_std` and embedded programs
Apache License 2.0
51 stars 11 forks source link

Add support for profile-guided optimization #11

Closed Amanieu closed 1 year ago

Amanieu commented 1 year ago

This adds support for collecting run-time profiling data with -Cprofile-generate which can be used to perform profile-guided optimization.

The API for retrieving the coverage data has also changed: there is now a single function capture_coverage which takes a sink into which the data is written. The sink must implement CoverageWriter, an implementation for Vec<u8> is provided if the alloc feature is enabled.

cc @xd009642 since this changes the API for no-alloc.

Amanieu commented 1 year ago

Released v0.3.0