Admin/profiling_reports
author wenzelm
Tue, 21 Jul 2009 01:03:18 +0200
changeset 32091 30e2ffbba718
parent 24856 f06829479407
child 36859 51af1657263b
permissions -rwxr-xr-x
proper context for Display.pretty_thm etc. or old-style versions Display.pretty_thm_global, Display.pretty_thm_without_context etc.;

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