From e67f173b7090a2850fd528542b85f4a7d8381b50 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 21 Jul 2014 09:17:43 +0300 Subject: [PATCH] add simple profiling script --- profile.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 profile.sh diff --git a/profile.sh b/profile.sh new file mode 100755 index 0000000..0af86f9 --- /dev/null +++ b/profile.sh @@ -0,0 +1,5 @@ +#!/bin/bash +python -m cProfile -o result.prof $* + +echo "sort time +stats 20" | python -m pstats result.prof