summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-03-11 12:10:15 -0400
committerKali Kaneko <kali@leap.se>2014-03-11 12:10:15 -0400
commited4fcb096c3166b76075921a484ee045e96f60b2 (patch)
tree9b683e9fd22042effaf1e6c84ded6d8fcd55b5c0 /Makefile
parentabfaf49d82215e1b674123cd9a395fa5ac10bc7b (diff)
add cProfile+viewer target to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb1f8218..358af126 100644
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,12 @@ manpages:
apidocs:
@sphinx-apidoc -o docs/api src/leap/bitmask
+do_cprofile:
+ python -m cProfile -o bitmask.cprofile src/leap/bitmask/app.py --debug -N
+
+view_cprofile:
+ cprofilev bitmask.cprofile
+
mailprofile:
gprof2dot -f pstats /tmp/leap_mail_profile.pstats -n 0.2 -e 0.2 | dot -Tpdf -o /tmp/leap_mail_profile.pdf