[perf] Specify html file on cmdline instead of redirecting all output

Redirecting all output was causing the build messages to be entangled with
the Performance Change html.
This commit is contained in:
Chris Wilson 2009-07-20 23:34:55 +01:00
parent 1ec1d6148e
commit 0c4692a1d0
2 changed files with 5 additions and 5 deletions

View file

@ -145,9 +145,9 @@ perf: cairo-perf$(EXEEXT) cairo-perf-trace$(EXEEXT)
html-local: index.html
perf-tag.html : cairo-perf${EXEEXT}
$(CAIRO_PERF_ENVIRONMENT) ./cairo-perf-diff -t -h `git describe --abbrev=0` HEAD > $@
$(CAIRO_PERF_ENVIRONMENT) ./cairo-perf-diff -t -h $@ `git describe --abbrev=0` HEAD
perf-commit.html : cairo-perf${EXEEXT}
$(CAIRO_PERF_ENVIRONMENT) ./cairo-perf-diff -t -h HEAD > $@
$(CAIRO_PERF_ENVIRONMENT) ./cairo-perf-diff -t -h $@ HEAD
# Summarise changes in index.html, with details in links
index.html: perf-tag.html perf-commit.html

View file

@ -58,7 +58,7 @@ benchmarks="cairo-perf"
while true; do
case $1 in
-f|--force) force_cairo_perf="true";;
-h|--html) html_output="true";;
-h|--html) html_output="$2"; shift ;;
-t|--trace) benchmarks="${benchmarks} cairo-perf-trace";;
*) break;;
esac
@ -243,9 +243,9 @@ if [ ! -e $new ]; then
new=`rev2perf $new`
fi
if [ "$html_output" != "true" ]; then
if [ -z "$html_output" ]; then
$CAIRO_DIR/perf/cairo-perf-diff-files $old $new
else
$CAIRO_DIR/perf/cairo-perf-diff-files $old $new |
$CAIRO_DIR/perf/make-html.py
$CAIRO_DIR/perf/make-html.py > $html_output
fi