From 32c78767dff3c8ec815f3c94350792ed16708ee5 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sat, 1 Jul 2023 13:31:51 -0500 Subject: [PATCH] disable profiler --- learn_sql_model/game/game.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/learn_sql_model/game/game.py b/learn_sql_model/game/game.py index 6b15987..58f669e 100644 --- a/learn_sql_model/game/game.py +++ b/learn_sql_model/game/game.py @@ -62,10 +62,10 @@ class Client: return self._ws def run(self): - from pyinstrument import Profiler + # from pyinstrument import Profiler - profiler = Profiler() - profiler.start() + # profiler = Profiler() + # profiler.start() while self.running: console.print("running") console.print("handle_events") @@ -80,8 +80,8 @@ class Client: Console().print(self.clock.get_fps()) console.print(f"time: {time}") console.print(f"ticks: {self.ticks}") - profiler.stop() - print(profiler.output_text()) + # profiler.stop() + # print(profiler.output_text()) self.quit() def quit(self):