mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 13:10:33 +01:00
[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:
parent
1ec1d6148e
commit
0c4692a1d0
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue