aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar qiankun.miao <qiankun.miao@intel.com>2014-09-09 19:24:36 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-09 19:24:36 -0700
commit8247ec313d87afcdd4da59b1f2f0d24e0983e359 (patch)
tree1969858f8925819f554b4b09f5058c5eeaac8669 /bench
parent9728a2bf561bf9461e075f8ce4b0e73c0b083645 (diff)
Fix format of nanobench result
Column of samples is too wide. This makes config is not align with the 'config' title. Pad 'samples' tilte with some whitespaces to fix this issue. BUG=skia: R=mtklein@google.com Author: qiankun.miao@intel.com Review URL: https://codereview.chromium.org/549153005
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index a8274d800a..20afdeb326 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -582,7 +582,8 @@ int nanobench_main() {
} else if (FLAGS_quiet) {
SkDebugf("median\tbench\tconfig\n");
} else {
- SkDebugf("maxrss\tloops\tmin\tmedian\tmean\tmax\tstddev\tsamples\tconfig\tbench\n");
+ SkDebugf("maxrss\tloops\tmin\tmedian\tmean\tmax\tstddev\t%-*s\tconfig\tbench\n",
+ FLAGS_samples, "samples");
}
SkTDArray<Config> configs;