Function minicov::capture_coverage [−][src]
Expand description
Captures the coverage data for the current program and returns it as a binary blob.
The blob should be saved to a file with the .profraw
extension, which can
then be processed using the llvm-profdata
and llvm-cov
tools.
You should call reset_coverage
afterwards if you intend to continue
running the program so that future coverage can be merged with the returned
captured coverage.