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

Unified Diff: bin/compare

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 | « bench/nanobench.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/compare
diff --git a/bin/compare b/bin/compare
index e911f4a6c3db3021212b58a3a3ceb6c7d3558feb..f723c083c1a0ff89097ce0d77e0cb82c306f0788 100755
--- a/bin/compare
+++ b/bin/compare
@@ -9,9 +9,11 @@ a,b = {},{}
for (path, d) in [(sys.argv[1], a), (sys.argv[2], b)]:
for line in open(path):
try:
- tokens = line.split()
- samples = tokens[:-1]
- label = tokens[-1]
+ tokens = line.split()
+ if tokens[0] != "Samples:":
+ continue
+ samples = tokens[1:-1]
+ label = tokens[-1]
d[label] = map(float, samples)
except:
pass
« no previous file with comments | « bench/nanobench.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698