[pypy-commit] jitviewer default: count percentage better
fijal
noreply at buildbot.pypy.org
Wed Mar 28 19:58:38 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r197:bc9ef9dbc0a0
Date: 2012-03-28 19:56 +0200
http://bitbucket.org/pypy/jitviewer/changeset/bc9ef9dbc0a0/
Log: count percentage better
diff --git a/_jitviewer/app.py b/_jitviewer/app.py
--- a/_jitviewer/app.py
+++ b/_jitviewer/app.py
@@ -127,7 +127,7 @@
op.count = getattr(subloop, 'count', '?')
if (hasattr(subloop, 'count') and
hasattr(orig_loop, 'count')):
- op.percentage = subloop.count / orig_loop.count
+ op.percentage = int((float(subloop.count) / orig_loop.count)*100)
else:
op.percentage = '?'
loop = FunctionHtml.from_operations(ops, self.storage,
More information about the pypy-commit
mailing list