Problem: Instrumented binaries are bigger and slower than regular binaries Fix By: Removing instrumentation options from compiler command line Waive If: Instrumentation is needed Example: WARN: Instrumentation enabled - this is probably a mistake for production binaries
This test checks to see if any of gcc’s instrumentation command line options have been used when the binary built. These options are: _fsanitize, -finstrument-functions, -p, -pg, and -fprofile-arcs.
If necessary the test can be disabled via the --skip-instrumentation option and re-enabled via the --test-instrumentation option.