Added rudimentary profiling support.

This commit is contained in:
Jeremy Fincher 2003-06-04 05:23:55 +00:00
parent 90409d0e19
commit 4c6e33b72d

View File

@ -178,5 +178,10 @@ def main():
sys.exit(0)
if __name__ == '__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: