Switch back to profile. hotshot is wonky

This commit is contained in:
James Vega 2004-08-20 04:06:30 +00:00
parent cf124a2f2b
commit 06afd9ff3d
1 changed files with 2 additions and 3 deletions

View File

@ -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()