-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
Sometimes it’s useful to only instrument certain files or functions. For example in automated testing infrastructure, it may be desirable to only instrument files or functions that were modified by a patch to reduce the overhead of instrumenting a full system.
Clang supports this via the -fprofile-list==<pathname>
option where the argument is a file in the Sanitizer special case list format which selects which files and functions to instrument. At the IR level, for any function that's not instrumented, Clang attaches the noprofile
attribute.
It'd be useful if Rust supported the same option. It'd be also nice if Rust could use the same file format but it's not strictly necessary.
FlashSheridan
Metadata
Metadata
Assignees
Labels
A-code-coverageArea: Source-based code coverage (-Cinstrument-coverage)Area: Source-based code coverage (-Cinstrument-coverage)C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.