Commit ea62f27e authored by Matthew Wilkes's avatar Matthew Wilkes

Rename abort list variable to aborts, prevents collision with as keyword

parent b5689c0d
...@@ -372,7 +372,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -372,7 +372,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs = [] rs = []
ss = [] ss = []
cs = [] cs = []
as = [] aborts = []
ts = [] ts = []
cls = [] cls = []
...@@ -392,7 +392,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -392,7 +392,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r) rs.append(r)
ss.append(s) ss.append(s)
cs.append(c) cs.append(c)
as.append(a) aborts.append(a)
ts.append(c+a) ts.append(c+a)
mlast = m mlast = m
r = s = c = a = 0 r = s = c = a = 0
...@@ -417,7 +417,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -417,7 +417,7 @@ def minute(f, slice=16, detail=1, summary=1):
rs.append(r) rs.append(r)
ss.append(s) ss.append(s)
cs.append(c) cs.append(c)
as.append(a) aborts.append(a)
ts.append(c+a) ts.append(c+a)
if summary: if summary:
...@@ -429,7 +429,7 @@ def minute(f, slice=16, detail=1, summary=1): ...@@ -429,7 +429,7 @@ def minute(f, slice=16, detail=1, summary=1):
print 'Reads: \t', '\t'.join(map(str,stats( rs))) print 'Reads: \t', '\t'.join(map(str,stats( rs)))
print 'Stores: \t', '\t'.join(map(str,stats( ss))) print 'Stores: \t', '\t'.join(map(str,stats( ss)))
print 'Commits: \t', '\t'.join(map(str,stats( cs))) print 'Commits: \t', '\t'.join(map(str,stats( cs)))
print 'Aborts: \t', '\t'.join(map(str,stats( as))) print 'Aborts: \t', '\t'.join(map(str,stats( aborts)))
print 'Trans: \t', '\t'.join(map(str,stats( ts))) print 'Trans: \t', '\t'.join(map(str,stats( ts)))
def stats(s): def stats(s):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment