disable profiler
This commit is contained in:
parent
f8bc84211c
commit
32c78767df
1 changed files with 5 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue