This now works for ARM as well as Intel.
Also combine both the 32-bit and 64-bit results (since we have code
that's only executed in one variant or the other, the union of the two
seems like what we actually want to measure).
Also make the script executable.
Test: ./bionic/build/coverage.sh
Change-Id: I4e3a7f4cd60fda060b956a960cfb9b703d3670e7
1. Prereqs: Coverage-enabled build.
$ lunch <target>
$ m NATIVE_COVERAGE_PATHS="bionic" CLANG_COVERAGE=true
$ m NATIVE_COVERAGE_PATHS="bionic" CLANG_COVERAGE=true bionic-unit-tests
2. Flash image and set $ANDROID_SERIAL
3. $ bionic/build/coverage.sh
HTML report is generated to /tmp/bionic-coverage
Test: build/coverage.sh
Change-Id: I33c7d47d218a68a250076f063cfbdbaab91acc74