File: gcov.prf

package info (click to toggle)
qtbase-opensource-src-gles 5.15.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 346,096 kB
  • sloc: cpp: 2,029,283; ansic: 316,141; xml: 117,558; python: 10,681; java: 7,431; asm: 4,023; perl: 2,044; sh: 1,967; yacc: 1,687; lex: 1,333; javascript: 878; makefile: 307; objc: 70
file content (30 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
#    Tested with gcov 4.8.1
#    http://gcc.gnu.org/onlinedocs/gcc-4.8.1/gcc/Gcov.html

# To instrument a Qt application or library with the gcov coverage
# tool, do `CONFIG+=gcov' in the application .pro file.
#
# To instrument Qt itself with gcov, use the `-gcov' configure
# option.

# The .gcno file is generated when the source file is compiled.
# The .gcda file is generated when a program is executed.

# Example how to generate the html output after you've run the program or test
#
# lcov --capture --directory . --output-file coverage-gcov.info --no-external
# lcov --output-file coverage-gcov.info --remove coverage-gcov.info '*.moc*' '.*rcc*' '*3rdparty*'
# genhtml coverage-gcov.info --output-directory doc/coverage

# If you want to use gcov directly, you most likely need to manually move the .gcda and .gcno files
# along with the program.
#
# mv .obj/debug-shared/tst_example.gc* .
# gcov -b -c tst_example.cpp

QMAKE_CFLAGS           += -fprofile-arcs -ftest-coverage
QMAKE_CXXFLAGS         += -fprofile-arcs -ftest-coverage
QMAKE_LFLAGS           += -fprofile-arcs -ftest-coverage

QMAKE_CLEAN += $(OBJECTS_DIR)*.gcno and $(OBJECTS_DIR)*.gcda