disable profiler

This commit is contained in:
Waylon Walker 2023-07-01 13:31:51 -05:00
parent f8bc84211c
commit 32c78767df
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -62,10 +62,10 @@ class Client:
return self._ws return self._ws
def run(self): def run(self):
from pyinstrument import Profiler # from pyinstrument import Profiler
profiler = Profiler() # profiler = Profiler()
profiler.start() # profiler.start()
while self.running: while self.running:
console.print("running") console.print("running")
console.print("handle_events") console.print("handle_events")
@ -80,8 +80,8 @@ class Client:
Console().print(self.clock.get_fps()) Console().print(self.clock.get_fps())
console.print(f"time: {time}") console.print(f"time: {time}")
console.print(f"ticks: {self.ticks}") console.print(f"ticks: {self.ticks}")
profiler.stop() # profiler.stop()
print(profiler.output_text()) # print(profiler.output_text())
self.quit() self.quit()
def quit(self): def quit(self):