코딩Coding/LLDB&GDB_TheGNU_Project_Debugger

C언어Debug)Source-based Code Coverage(clang)

내인생PLUS 2022. 4. 24. 20:47
728x90

https://clang.llvm.org/docs/SourceBasedCodeCoverage.html

 

Source-based Code Coverage — Clang 15.0.0git documentation

The next step is to run the instrumented program. When the program exits it will write a raw profile to the path specified by the LLVM_PROFILE_FILE environment variable. If that variable does not exist, the profile is written to default.profraw in the curr

clang.llvm.org

 

 

 

Clang ships two other code coverage implementations:

  • SanitizerCoverage - A low-overhead tool meant for use alongside the various sanitizers. It can provide up to edge-level coverage.
  • gcov - A GCC-compatible coverage implementation which operates on DebugInfo. This is enabled by -ftest-coverage or --coverage.

 

 

 


 

반응형