Admin/profiling_reports
author huffman
Tue, 09 Oct 2012 17:33:46 +0200
changeset 49759 ecf1d5d87e5e
parent 44152 a07748619f53
permissions -rwxr-xr-x
removed support for set constant definitions in HOLCF {cpo,pcpo,domain}def commands; removed '(open)', '(set_name)' and '(open set_name)' options

#!/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