replace profiling script with context manager

This commit is contained in:
Roman Zeyde
2014-08-08 20:21:36 +03:00
parent 4a4e787689
commit 449d74c712
3 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +0,0 @@
#!/bin/bash
python -m cProfile -o result.prof $*
echo "sort time
stats 20" | python -m pstats result.prof 1>&2