Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r184:e9485a7845a0
Date: 2011-12-27 16:57 +0200
http://bitbucket.org/pypy/jitviewer/changeset/e9485a7845a0/

Log:    slightly better - display loops at least

diff --git a/bin/jitviewer.py b/bin/jitviewer.py
--- a/bin/jitviewer.py
+++ b/bin/jitviewer.py
@@ -71,14 +71,14 @@
         all = flask.request.args.get('all', None)
         loops = []
         for index, loop in enumerate(self.storage.loops):
-            if 'entry bridge' in loop.comment:
-                is_entry = True
-            else:
-                is_entry = False
+            is_entry = False
             try:
+                start, stop = loop.comment.find('('), loop.comment.rfind(')')
+                name = loop.comment[start + 1:stop]
                 func = FunctionHtml.from_operations(loop.operations, 
self.storage,
                                                     limit=1,
-                                                    inputargs=loop.inputargs)
+                                                    inputargs=loop.inputargs,
+                                                    loopname=name)
             except CannotFindFile:
                 func = DummyFunc()
             func.count = getattr(loop, 'count', '?')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to