[PATCH] D52033: [GCOV] Add options to filter files which must be instrumented.

calixte via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 07:10:51 PDT 2018


calixte created this revision.
calixte added reviewers: marco-c, vsk.
Herald added a subscriber: llvm-commits.

When making code coverage, a lot of files (like the ones coming from /usr/include) are removed when post-processing gcno/gcda so finally they doen't need to be instrumented nor to appear in gcno/gcda.
The goal of the patch is to be able to filter the files we want to instrument, there are several advantages to do that:

- improve speed (no overhead due to instrumentation on files we don't care)
- reduce gcno/gcda size
- it gives the possibility to easily instrument only few files (e.g. ones modified in a patch) without changing the build system


Repository:
  rL LLVM

https://reviews.llvm.org/D52033

Files:
  include/llvm/Transforms/Instrumentation.h
  lib/Transforms/Instrumentation/GCOVProfiling.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52033.165278.patch
Type: text/x-patch
Size: 5199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180913/304b6e48/attachment.bin>


More information about the llvm-commits mailing list