aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@google.com>2014-07-17 11:23:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-17 11:23:07 -0700
commit04d53a5cd5ab609526ecf40159df01975ee2bbfd (patch)
tree103c985617e71024c8b65dd20c79fd40b2ccf4c5 /bench
parente904c09a3a9c701e8d91f2f6ee161feda7615d90 (diff)
Revert of nanobench: --veryVerbose for more Win7 debugging (https://codereview.chromium.org/401663002/)
Reason for revert: Shouldn't be needed anymore. Original issue's description: > nanobench: --veryVerbose for more Win7 debugging > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/e57452d R=mtklein@chromium.org TBR=mtklein@chromium.org NOTREECHECKS=true NOTRY=true BUG=skia: Author: mtklein@google.com Review URL: https://codereview.chromium.org/404543004
Diffstat (limited to 'bench')
-rw-r--r--bench/nanobench.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 2f670f6217..59e85ed9e6 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -54,7 +54,6 @@ DEFINE_int32(maxCalibrationAttempts, 3,
"Try up to this many times to guess loops for a bench, or skip the bench.");
DEFINE_int32(maxLoops, 1000000, "Never run a bench more times than this.");
-DEFINE_bool2(veryVerbose, V, false, "Print lots for debugging bots.");
static SkString humanize(double ms) {
if (ms > 1e+3) return SkStringPrintf("%.3gs", ms/1e3);
@@ -72,7 +71,6 @@ static double time(int loops, Benchmark* bench, SkCanvas* canvas, SkGLContextHel
WallTimer timer;
timer.start();
if (bench) {
- if (FLAGS_veryVerbose) { SkDebugf("Timing %s for %d loops.\n", bench->getName(), loops); }
bench->draw(loops, canvas);
}
if (canvas) {
@@ -143,7 +141,6 @@ static int cpu_bench(const double overhead, Benchmark* bench, SkCanvas* canvas,
for (int i = 0; i < FLAGS_samples; i++) {
samples[i] = time(loops, bench, canvas, NULL) / loops;
- if (FLAGS_veryVerbose) { SkDebugf(" %s\n", HUMANIZE(samples[i])); }
}
return loops;
}
@@ -173,8 +170,6 @@ static int gpu_bench(SkGLContextHelper* gl,
// We've overshot at least a little. Scale back linearly.
loops = (int)ceil(loops * FLAGS_gpuMs / elapsed);
- if (FLAGS_veryVerbose) { SkDebugf("elapsed %s, loops %d\n", HUMANIZE(elapsed), loops); }
-
// Might as well make sure we're not still timing our calibration.
SK_GL(*gl, Finish());
}
@@ -189,7 +184,6 @@ static int gpu_bench(SkGLContextHelper* gl,
// Now, actually do the timing!
for (int i = 0; i < FLAGS_samples; i++) {
samples[i] = time(loops, bench, canvas, gl) / loops;
- if (FLAGS_veryVerbose) { SkDebugf(" %s\n", HUMANIZE(samples[i])); }
}
return loops;
}
@@ -348,6 +342,8 @@ int tool_main(int argc, char** argv) {
cpu_bench( overhead, bench.get(), canvas, samples.get());
if (loops == 0) {
+ SkDebugf("Unable to time %s\t%s (overhead %s)\n",
+ bench->getName(), config, HUMANIZE(overhead));
continue;
}