memory/jemalloc/src/coverage.sh
author Nicholas D. Matsakis <nmatsakis@mozilla.com>
Tue, 11 Mar 2014 13:23:24 -0400
changeset 187335 4903226b4f2ff4f6c44fe08e91e5dff0e163741d
parent 184501 f37de5ce263d5739202ef7102abf1c8e0cada212
permissions -rwxr-xr-x
Bug 973238 Part 6 -- Consult prototype rather than typed object addendum r=bhackett

#!/bin/sh

set -e

objdir=$1
suffix=$2
shift 2
objs=$@

gcov -b -p -f -o "${objdir}" ${objs}

# Move gcov outputs so that subsequent gcov invocations won't clobber results
# for the same sources with different compilation flags.
for f in `find . -maxdepth 1 -type f -name '*.gcov'` ; do
  mv "${f}" "${f}.${suffix}"
done