add simple profiling script

This commit is contained in:
Roman Zeyde
2014-07-21 09:17:43 +03:00
parent a5264ce0f7
commit e67f173b70

5
profile.sh Executable file
View File

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