From ed4fcb096c3166b76075921a484ee045e96f60b2 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Tue, 11 Mar 2014 12:10:15 -0400 Subject: add cProfile+viewer target to Makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3