mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Switch to hotshot for profiling
This commit is contained in:
parent
48d6dc5914
commit
97dde42b61
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user