mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-22 10:04:25 +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)
|
||||
|
||||
if options.profile:
|
||||
import hotshot
|
||||
profiler = hotshot.Profile('%s-%i.prof' % (nick, time.time()))
|
||||
import profile
|
||||
world.profiling = True
|
||||
profiler.run('main()')
|
||||
profile.run('main()', '%s-%i.prof' % (nick, time.time()))
|
||||
else:
|
||||
main()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user