Admin/profiling_reports
author wenzelm
Tue, 24 Mar 2009 23:43:58 +0100
changeset 30714 88bc86d7dec3
parent 24856 f06829479407
child 36859 51af1657263b
permissions -rwxr-xr-x
simplified addPrettyPrinter setup: may pass (fn ...) directly if type constraints are omitted -- addPrettyPrinter treated as a special case internally;

#!/usr/bin/env bash
#
# $Id$
# 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