llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Add a user guide for code coverage

Open vedantk opened this issue 10 years ago • 5 comments

Bugzilla Link 27781
Resolution FIXED
Resolved on Jun 01, 2016 21:32
Version trunk
OS All
CC @vns-mn,@igorkudrin,@kcc,@silvasean

vedantk avatar May 16 '16 21:05 vedantk

r271454 -> http://clang.llvm.org/docs/SourceBasedCodeCoverage.html

vedantk avatar Jun 02 '16 04:06 vedantk

I think we need a separate user guide for PGO that explains e.g how to use -fprofile-use, how to switch between {IR,FE}-based instrumentation, and how to use llvm-profdata to extract information from profiles.

Having a standalone user guide for FE-based code coverage would make it easier to talk about llvm-cov.

vedantk avatar May 17 '16 21:05 vedantk

This will probably need to do double-duty with PGO since they use the same underlying runtime lib.

silvasean avatar May 17 '16 01:05 silvasean

Which code coverage? The sanitizer-coverage is documented here: clang.llvm.org/docs/SanitizerCoverage.html

The usual llvm coverage is indeed mostly undocumented, CC-ing David Li.

kcc avatar May 16 '16 22:05 kcc

assigned to @vedantk

vedantk avatar May 16 '16 21:05 vedantk