remove pyinstrument

This commit is contained in:
Waylon Walker 2023-07-01 13:52:59 -05:00
parent 241b692584
commit 85be664107
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -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):