1Generate coverage on Mac 2 3call WebKitTools/Script/generate-coverage-data 4 5or by hand 6 7 8# delete 9find . -name '*.gcda' -delete 10 11# build, -framework CoreFoundation might suffice as well 12WebKitTools/Scripts/build-webkit GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit" 13WebKitTools/Scripts/run-webkit-tests 14WebKitTools/Scripts/run-javascriptcore-tests GCC_GENERATE_TEST_COVERAGE_FILES=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES EXTRA_LINK=" -ftest-coverage -fprofile-arcs" OTHER_CFLAGS=" -MD " OTHER_LDFLAGS=" -ftest-coverage -fprofile-arcs -framework AppKit" 15 16 17# Collect files 18WebKitTools/CodeCoverage/run-generate-coverage-data <RUN_ID> ../coverage-results/ 19 20 21# Generate graph 22WebKitTools/CodeCoverage/regenerate-coverage-display ../coverage-results/ ../coverage-results/html 23