diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-20 22:19:21 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-07-20 22:20:01 +0100 |
commit | 2dd97ae59c482f09e42d719a941e189560f00b8f (patch) | |
tree | 3466dbf4347c0c28176001e6607ab7b154e73da3 /perf/cairo-perf-diff | |
parent | f30cee70f5fadd1f2af60310a148f61ed4fc7069 (diff) | |
download | cairo-2dd97ae59c482f09e42d719a941e189560f00b8f.tar.gz |
[perf] Include trace comparison in html output
Diffstat (limited to 'perf/cairo-perf-diff')
-rwxr-xr-x | perf/cairo-perf-diff | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/perf/cairo-perf-diff b/perf/cairo-perf-diff index e695cfccf..2ab447e05 100755 --- a/perf/cairo-perf-diff +++ b/perf/cairo-perf-diff @@ -52,12 +52,14 @@ END exit 1 } +benchmarks="cairo-perf" + # First, pull off any known options while true; do case $1 in -f|--force) force_cairo_perf="true";; -h|--html) html_output="true";; - -t|--trace) use_traces="true";; + -t|--trace) benchmarks="${benchmarks} cairo-perf-trace";; *) break;; esac @@ -212,15 +214,10 @@ run_cairo_perf_if_not_cached() { build $build_dir $sha || exit 1 } - if [ "$use_traces" = "true" ]; then - cmd="cairo-perf-trace" - else - cmd="cairo-perf" - fi - echo "Running \"$cmd $CAIRO_PERF_OPTIONS\" against $rev. Results will be cached in:" - echo "$perf" - pwd - (./$cmd $CAIRO_PERF_OPTIONS || echo "*** Performance test crashed") >> $perf + echo "Running \"cairo-perf $CAIRO_PERF_OPTIONS\" against $rev. Results will be cached in:" + for cmd in $benchmarks; do + (./$cmd $CAIRO_PERF_OPTIONS || echo "*** Performance test crashed") >> $perf + done cd $owd } |