| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 8d00ca132f7da475c65140f6715bcf3d53ba18f8..eb48ec228d6b35886d6c8a87cd5e1c344f9479e3 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -75,6 +75,7 @@ DEFINE_bool(bbh, true, "Build a BBH for SKPs?");
|
| DEFINE_bool(mpd, true, "Use MultiPictureDraw for the SKPs?");
|
| DEFINE_int32(flushEvery, 10, "Flush --outResultsFile every Nth run.");
|
| DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test.");
|
| +DEFINE_bool(gpuStats, false, "Print GPU stats after each gpu benchmark?");
|
|
|
| static SkString humanize(double ms) {
|
| if (FLAGS_verbose) return SkStringPrintf("%llu", (uint64_t)(ms*1e6));
|
| @@ -766,10 +767,11 @@ int nanobench_main() {
|
| , bench->getUniqueName()
|
| );
|
| }
|
| -#if SK_SUPPORT_GPU && GR_CACHE_STATS
|
| - if (FLAGS_veryVerbose &&
|
| +#if SK_SUPPORT_GPU
|
| + if (FLAGS_gpuStats &&
|
| Benchmark::kGPU_Backend == targets[j]->config.backend) {
|
| gGrFactory->get(targets[j]->config.ctxType)->printCacheStats();
|
| + gGrFactory->get(targets[j]->config.ctxType)->printGpuStats();
|
| }
|
| #endif
|
| }
|
|
|