ImportError: No module named pstats

Install python-profiler