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.
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 implementCoverageWriter
, an implementation forVec<u8>
is provided if thealloc
feature is enabled.cc @xd009642 since this changes the API for no-alloc.