Switch to hotshot for profiling

This commit is contained in:
James Vega 2004-03-26 00:58:36 +00:00
parent 48d6dc5914
commit 97dde42b61

View File

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