Files
pytest2/bench/bench.py
Benjamin Peterson b40a0c18b1 python3 fixes
2010-11-23 20:32:07 -06:00

11 lines
261 B
Python

if __name__ == '__main__':
import cProfile
import py
import pstats
stats = cProfile.run('py.test.cmdline.main(["empty.py", ])', 'prof')
p = pstats.Stats("prof")
p.strip_dirs()
p.sort_stats('cumulative')
print(p.print_stats(30))