Switch to hotshot for profiling

This commit is contained in:
James Vega 2004-03-26 00:58:36 +00:00
parent 48d6dc5914
commit 97dde42b61
1 changed files with 3 additions and 2 deletions

View File

@ -330,8 +330,9 @@ if __name__ == '__main__':
driver = drivers.newDriver(server, irc)
if options.profile:
import profile
profile.run('main()', '%s-%i.prof' % (nick, time.time()))
import hotshot
profiler = hotshot.Profile('%s-%i.prof' % (nick, time.time()))
profiler.run('main()')
else:
main()