Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: bench/nanobench.cpp

Issue 1208763003: Don't suppress nanobench output table in verbose mode (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_timesamples
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | bin/compare » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 19fdac0d47ea12199cd347c330faee40ce76ade2..7cc5383091d4d29723542605603c2cf8a8198850 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -1005,8 +1005,6 @@ int nanobench_main() {
if (kAutoTuneLoops != FLAGS_loops) {
SkDebugf("Fixed number of loops; times would only be misleading so we won't print them.\n");
- } else if (FLAGS_verbose) {
- // No header.
} else if (FLAGS_quiet) {
SkDebugf("median\tbench\tconfig\n");
} else if (kTimedSampling == FLAGS_samples) {
@@ -1103,11 +1101,6 @@ int nanobench_main() {
, sk_tools::getMaxResidentSetSizeMB()
, bench->getUniqueName()
, config);
- } else if (FLAGS_verbose) {
- for (int i = 0; i < samples.count(); i++) {
- SkDebugf("%s ", HUMANIZE(samples[i]));
- }
- SkDebugf("%s\n", bench->getUniqueName());
} else if (FLAGS_quiet) {
if (configs.count() == 1) {
config = ""; // Only print the config if we run the same bench on more than one.
@@ -1137,6 +1130,13 @@ int nanobench_main() {
gGrFactory->get(configs[i].ctxType)->printGpuStats();
}
#endif
+ if (FLAGS_verbose) {
+ SkDebugf("Samples: ");
+ for (int i = 0; i < samples.count(); i++) {
+ SkDebugf("%s ", HUMANIZE(samples[i]));
+ }
+ SkDebugf("%s\n", bench->getUniqueName());
+ }
cleanup_run(target);
}
}
« no previous file with comments | « no previous file | bin/compare » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698