mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 07:50:28 +01:00
[perf] Add a non-build mode to graph
Add --show to cairo-perf-graph just to graph perf files that currently exist and not build the missing cases.
This commit is contained in:
parent
d4dd6fcf3a
commit
44b72ba6d7
1 changed files with 3 additions and 2 deletions
|
|
@ -49,6 +49,7 @@ while true; do
|
|||
case $1 in
|
||||
-f|--force) force_cairo_perf="true";;
|
||||
-h|--html) html_output="true";;
|
||||
-s|--show) show_only="true";;
|
||||
*) break;;
|
||||
esac
|
||||
|
||||
|
|
@ -136,7 +137,7 @@ run_cairo_perf_if_not_cached() {
|
|||
sha=`rev2sha $rev`
|
||||
perf=`rev2perf $rev`
|
||||
glob=`rev2perf_glob $rev`
|
||||
if [ -e $glob ] && [ "$force_cairo_perf" != "true" ]; then
|
||||
if [ -e $glob ] && [ "$force_cairo_perf" != "true" ] || [ -n "$show_only" ]; then
|
||||
return 0
|
||||
fi
|
||||
if [ ! -d $CAIRO_PERF_DIR ]; then
|
||||
|
|
@ -198,7 +199,7 @@ revs=""
|
|||
for rev in `git rev-list --reverse $old..$new`; do
|
||||
run_cairo_perf_if_not_cached $rev rev
|
||||
perf=`rev2perf $rev`
|
||||
[ -e $perf ] && revs="$revs $perf"
|
||||
[ -e "$perf" ] && revs="$revs $perf"
|
||||
done
|
||||
|
||||
exec $CAIRO_DIR/perf/cairo-perf-graph-files $revs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue