mirror of https://github.com/Mikaela/Limnoria.git
Added rudimentary profiling support.
This commit is contained in:
parent
90409d0e19
commit
4c6e33b72d
|
@ -178,5 +178,10 @@ def main():
|
|||
sys.exit(0)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
import sys
|
||||
if '-p' in sys.args:
|
||||
import profile, time
|
||||
profile.run('main()', '%i.prof' % time.time())
|
||||
else:
|
||||
main()
|
||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||
|
|
Loading…
Reference in New Issue