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

Unified Diff: bench/nanobench.cpp

Issue 1681583002: Support --dryRun in nanobench to get a list of benchmarks. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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 31efefa4f4fb0034a632143bed2107b18bbe221b..aeae4f41dbea383548f1d74e7590fa8875c3d2a1 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -1082,10 +1082,13 @@ int nanobench_main() {
SkCanvas* canvas = target->getCanvas();
const char* config = target->config.name.c_str();
- if (FLAGS_pre_log) {
+ if (FLAGS_pre_log || FLAGS_dryRun) {
SkDebugf("Running %s\t%s\n"
, bench->getUniqueName()
, config);
+ if (FLAGS_dryRun) {
+ continue;
+ }
}
target->setup();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698