aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-21 13:30:16 -0800
committerGravatar GitHub <noreply@github.com>2017-02-21 13:30:16 -0800
commit9342dc43dddf6f2e652ca5e66a4382220e1e4a9d (patch)
tree81b8c94ee74cc72b9dac8834cf8828995034bcb5 /tools
parente96b6a247788c59347a84e0524830e96044d0c49 (diff)
parent7f4d30a0321a042d4f8512815c1029cbaad6fac8 (diff)
Merge pull request #9801 from ctiller/rmw
Add counters for rmw atomic operations to microbenchmarks
Diffstat (limited to 'tools')
-rwxr-xr-xtools/profiling/microbenchmarks/bm2bq.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/profiling/microbenchmarks/bm2bq.py b/tools/profiling/microbenchmarks/bm2bq.py
index a7d82269f5..8ead4b4455 100755
--- a/tools/profiling/microbenchmarks/bm2bq.py
+++ b/tools/profiling/microbenchmarks/bm2bq.py
@@ -66,6 +66,8 @@ columns = [
('cli_stream_stalls_per_iteration', 'float'),
('svr_transport_stalls_per_iteration', 'float'),
('svr_stream_stalls_per_iteration', 'float'),
+ ('atm_cas_per_iteration', 'float')
+ ('atm_add_per_iteration', 'float')
]
if sys.argv[1] == '--schema':
@@ -158,7 +160,7 @@ def parse_name(name):
for bm in js['benchmarks']:
context = js['context']
if 'label' in bm:
- labels_list = [s.split(':') for s in bm['label'].split(' ')]
+ labels_list = [s.split(':') for s in bm['label'].strip().split(' ')]
for el in labels_list:
el[0] = el[0].replace('/iter', '_per_iteration')
labels = dict(labels_list)