diff options
author | cdalton <cdalton@nvidia.com> | 2015-06-26 13:32:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-26 13:32:53 -0700 |
commit | 2c56ba5cde25a5cdbeca2afd660b497b428e8f07 (patch) | |
tree | d16ae1e75ca840336738930d1acdb1329cd3c142 /bin | |
parent | 58001553ec6298cbea3b2e915ed7a1ac0e763e8f (diff) |
Don't suppress nanobench output table in verbose mode
Changes verbose mode to print both the table and the individual sample
values. No need to hold back information in verbose mode.
BUG=skia:
Review URL: https://codereview.chromium.org/1208763003
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/compare | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/compare b/bin/compare index e911f4a6c3..f723c083c1 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 |