aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/profiling/microbenchmarks/bm_diff/bm_diff.py
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2017-06-14 11:55:56 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2017-06-14 11:55:56 -0700
commit81941b92219a6251ab903de48a1ead181c89d1f3 (patch)
treed481f22f405e1c6879b88f3485fce846ba309c8a /tools/profiling/microbenchmarks/bm_diff/bm_diff.py
parentb423f579e44f30f6c4ac3498ad1fc738fa8c8895 (diff)
Propagate counters flag change
Diffstat (limited to 'tools/profiling/microbenchmarks/bm_diff/bm_diff.py')
-rwxr-xr-xtools/profiling/microbenchmarks/bm_diff/bm_diff.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/profiling/microbenchmarks/bm_diff/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff/bm_diff.py
index 6bb53e9676..73abf90ff5 100755
--- a/tools/profiling/microbenchmarks/bm_diff/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff/bm_diff.py
@@ -67,12 +67,9 @@ def _args():
default=20,
help='Number of times to loops the benchmarks. Must match what was passed to bm_run.py'
)
- argp.add_argument(
- '-c',
- '--counters',
- type=bool,
- default=True,
- help='Whether or not to run and diff a counters build')
+ argp.add_argument('--counters', dest='counters', action='store_true')
+ argp.add_argument('--no-counters', dest='counters', action='store_false')
+ argp.set_defaults(counters=True)
argp.add_argument('-n', '--new', type=str, help='New benchmark name')
argp.add_argument('-o', '--old', type=str, help='Old benchmark name')
argp.add_argument(