diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-20 14:26:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-20 14:26:37 +0100 |
commit | c6c3bdba4b43a1f678dae46bfe52d37fc292c6d4 (patch) | |
tree | 39aa50a4ffdd4a0816010c529230da1f3f101711 /perf/cairo-perf-trace.c | |
parent | 0d93468efc7f7337b63c0cd746d5185e14d345f1 (diff) | |
download | cairo-c6c3bdba4b43a1f678dae46bfe52d37fc292c6d4.tar.gz |
perf: Only print description once per backend
Currently we print the backend description before every time, which is
overly verbose. As the information doesn't^Wshouldn't change, simply
print it before running the first test of each target.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'perf/cairo-perf-trace.c')
-rw-r--r-- | perf/cairo-perf-trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perf/cairo-perf-trace.c b/perf/cairo-perf-trace.c index d34790834..78c540268 100644 --- a/perf/cairo-perf-trace.c +++ b/perf/cairo-perf-trace.c @@ -278,6 +278,10 @@ describe (cairo_perf_t *perf, { char *description = NULL; + if (perf->has_described_backend) + return; + perf->has_described_backend = TRUE; + if (perf->target->describe) description = perf->target->describe (closure); @@ -827,6 +831,7 @@ main (int argc, perf.target = target; perf.test_number = 0; + perf.has_described_backend = FALSE; if (perf.exact_names) { for (n = 0; n < perf.num_names; n++) { |