Forgot to remove python profiling from one place

This commit is contained in:
Kovid Goyal 2017-08-26 10:35:11 +05:30
parent 778b090467
commit 6a3c812470
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -196,19 +196,6 @@ class Boss(Thread):
self.queue_ui_action(self.gui_close_window, window)
def run(self):
if self.args.profile:
import cProfile
import pstats
pr = cProfile.Profile()
pr.enable()
self.loop()
if self.args.profile:
pr.disable()
pr.create_stats()
s = pstats.Stats(pr)
s.dump_stats(self.args.profile)
def loop(self):
while not self.shutting_down:
all_readers = list(self.read_dispatch_map)
all_writers = [