progs/perf: human-readable drawoverhead output
authorKeith Whitwell <keithw@vmware.com>
Mon, 21 Sep 2009 14:54:28 +0000 (15:54 +0100)
committerKeith Whitwell <keithw@vmware.com>
Mon, 21 Sep 2009 14:57:14 +0000 (15:57 +0100)
progs/perf/drawoverhead.c

index c1e166e7462f3e3b9b810027da36c7ce20cc7bcc..d581f4b18724cb90e75cffdb0d5573bba12b35cc 100644 (file)
@@ -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);
 }