From d1e1192090c56b5fa0794faae319cfaa88fc1788 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 7 Nov 2006 12:59:57 -0800 Subject: [PATCH] cairo-perf: Print ticks_per_ms value in raw mode so raw analysis tools can report times --- perf/cairo-perf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index ca8070888..4345beea6 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -126,8 +126,8 @@ cairo_perf_run (cairo_perf_t *perf, if (first_run) { if (perf->raw) - printf ("[ # ] %s-%-s %s %s ...\n", - "backend", "content", "test-size", "time(ticks)"); + printf ("[ # ] %s-%-s %s %s %s ...\n", + "backend", "content", "test-size", "ticks-per-ms", "time(ticks)"); else printf ("[ # ] %8s-%-4s %28s %8s %8s %5s %5s %s\n", "backend", "content", "test-size", "min(ticks)", "min(ms)", "median(ms)", @@ -148,10 +148,11 @@ cairo_perf_run (cairo_perf_t *perf, if (perf->raw) { if (i == 0) - printf ("[*] %s-%s %s-%d", + printf ("[*] %s-%s %s-%d %g", perf->target->name, _content_to_string (perf->target->content), - name, perf->size); + name, perf->size, + cairo_perf_ticks_per_second () / 1000.0); printf (" %lld", times[i]); } else { if (i >= CAIRO_STATS_MIN_VALID_SAMPLES) {