mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-22 18:14:41 +01:00
Switch back to profile. hotshot is wonky
This commit is contained in:
parent
cf124a2f2b
commit
06afd9ff3d
@ -323,10 +323,9 @@ if __name__ == '__main__':
|
|||||||
log.error('Error opening pid file %s: %s', pidFile, e)
|
log.error('Error opening pid file %s: %s', pidFile, e)
|
||||||
|
|
||||||
if options.profile:
|
if options.profile:
|
||||||
import hotshot
|
import profile
|
||||||
profiler = hotshot.Profile('%s-%i.prof' % (nick, time.time()))
|
|
||||||
world.profiling = True
|
world.profiling = True
|
||||||
profiler.run('main()')
|
profile.run('main()', '%s-%i.prof' % (nick, time.time()))
|
||||||
else:
|
else:
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user