Admin/profiling_reports
author wenzelm
Tue, 25 May 2010 22:12:26 +0200
changeset 37119 b36a5512c5fb
parent 36859 51af1657263b
child 44152 a07748619f53
permissions -rwxr-xr-x
renamed HOLCF/Library/ROOT.ML to HOLCF/Library/HOLCF_Library_ROOT.ML to avoid accidental uses of this ML file via the load path -- see also d7711be8c3a9 (obsolete) and ccae4ecd67f4;

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

THIS=$(cd $(dirname "$0"); echo "$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