Commits

Maciej Fijalkowski  committed 9616488

fix the hex conversion

  • Participants
  • Parent commits 854441a

Comments (0)

Files changed (1)

File _jitviewer/app.py

     if descr.startswith('TargetToken('):
         return descr[len('TargetToken('):-1]
     if descr.startswith('<Guard'):
-        return 'bridge-' + descr[len('<Guard'):-1]
+        return 'bridge-' + str(int(descr[len('<Guard0x'):-1], 16))
     if descr.startswith('<Loop'):
         return 'entry-' + descr[len('<Loop'):-1]
     return descr.replace(" ", '-')
     parse_log_counts(extract_category(log, 'jit-backend-count'), loops)
     storage.loops = [loop for loop in loops
                      if not loop.descr.startswith('bridge')]
-    storage.reconnect_loops(storage.loops)
     storage.loop_dict = create_loop_dict(loops)
     app = OverrideFlask('_jitviewer')
     server = Server(filename, storage)
     app.route('/loop')(server.loop)
     if run_app:
         def run():
-            app.run(use_reloader=True, host='0.0.0.0', port=port)
+            app.run(use_reloader=bool(os.environ.get('JITVIEWER_USE_RELOADER', True)), host='0.0.0.0', port=port)
 
         if server_mode:
             run()