mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-25 20:41:18 -05:00
Fix --profile
Broken by 0572d499883ba1f320a01f0125b00c5962fdc2cd
This commit is contained in:
parent
10a341c70c
commit
bb120edbb1
@ -363,7 +363,9 @@ def main():
|
|||||||
if options.profile:
|
if options.profile:
|
||||||
import profile
|
import profile
|
||||||
world.profiling = True
|
world.profiling = True
|
||||||
profile.run('run()', '%s-%i.prof' % (nick, time.time()))
|
profile.runctx('run()',
|
||||||
|
globals=globals(), locals={**locals(), "run": run},
|
||||||
|
filename='%s-%i.prof' % (nick, time.time()))
|
||||||
else:
|
else:
|
||||||
run()
|
run()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user