Admin/profiling_reports
author blanchet
Thu, 28 Aug 2014 16:58:27 +0200
changeset 58075 95bab16eac45
parent 44152 a07748619f53
permissions -rwxr-xr-x
going back to bc06471cb7b7 for silencing -- the bad side effects occurred only with 'smt', and the alternative silencing sometimes broke 'auto' etc.

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: Cumulative reports for Poly/ML profiling output.

THIS="$(cd $(dirname "$0"); pwd)"

SRC="$1"
DST="$2"

mkdir -p "$DST"

for FILE in "$SRC"/*.gz
do
  echo "$FILE"
  NAME="$(basename "$FILE" .gz)"
  gzip -dc "$FILE" | "$THIS/profiling_report" > "$DST/$NAME"
done