From: Diego Novillo Date: Fri, 22 May 2015 16:05:07 +0000 (+0000) Subject: Add clarifying note that sampling-based profiles cannot be used for code coverage. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b8159e72173dd6d75abf9e3093f42ab3fa5b3a6;p=clang Add clarifying note that sampling-based profiles cannot be used for code coverage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238031 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 50d5d01925..2a6fc82a90 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -1290,6 +1290,10 @@ If you are not using Linux Perf to collect profiles, you will need to write a conversion tool from your profiler to LLVM's format. This section explains the file format expected by the backend. +NOTE: This format is not intended to be used for code coverage. For that, +you need to use Clang's instrumentation based profiling +(``-fprofile-instr-generate``). + Sample profiles are written as ASCII text. The file is divided into sections, which correspond to each of the functions executed at runtime. Each section has the following format (taken from