summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-09-21 15:54:28 +0100
committerKeith Whitwell <keithw@vmware.com>2009-09-21 15:57:14 +0100
commit25a580c8416c7fdf6ddbf25b8121ee8774a2acd8 (patch)
treef486d26695fa3c057090acf310544bb981a929ed /progs
parent6ab7c127f77432262a5ca55100e767f1ba4f99a8 (diff)
progs/perf: human-readable drawoverhead output
Diffstat (limited to 'progs')
-rw-r--r--progs/perf/drawoverhead.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/progs/perf/drawoverhead.c b/progs/perf/drawoverhead.c
index c1e166e746..d581f4b187 100644
--- a/progs/perf/drawoverhead.c
+++ b/progs/perf/drawoverhead.c
@@ -116,18 +116,18 @@ PerfDraw(void)
double rate0, rate1, rate2, overhead;
rate0 = PerfMeasureRate(DrawNoStateChange);
- perf_printf(" Draw only: %.1f draws/second\n", rate0);
+ perf_printf(" Draw only: %s draws/second\n",
+ PerfHumanFloat(rate0));
-
rate1 = PerfMeasureRate(DrawNopStateChange);
overhead = 1000.0 * (1.0 / rate1 - 1.0 / rate0);
- perf_printf(" Draw w/ nop state change: %.1f draws/sec (overhead: %f ms/draw)\n",
- rate1, overhead);
+ perf_printf(" Draw w/ nop state change: %s draws/sec (overhead: %f ms/draw)\n",
+ PerfHumanFloat(rate1), overhead);
rate2 = PerfMeasureRate(DrawStateChange);
overhead = 1000.0 * (1.0 / rate2 - 1.0 / rate0);
- perf_printf(" Draw w/ state change: %.1f draws/sec (overhead: %f ms/draw)\n",
- rate2, overhead);
+ perf_printf(" Draw w/ state change: %s draws/sec (overhead: %f ms/draw)\n",
+ PerfHumanFloat(rate2), overhead);
exit(0);
}