Calling hotshot, a python profiler, from command line

Profiling some python script I looked for some convenient way to call hotshot from command line just like it is possible with profile \ cProfile out-of-the-box. Since I couldn’t find any, I wrote this simple wrapper: import hotshot, hotshot.stats import os import sys if __name__ == „__main__“: if len(sys.argv) == 0: sys.exit() if len(sys.argv) == […]

Also tagged , , , ,