summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-02-19 15:39:34 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-02-19 15:39:34 -0300
commit3102cea29c518b1c6cd8d639a22d92e5ca772027 (patch)
tree89172f0db0ac1adc7fc4d5c423274f5cb0f4cb66 /Makefile
parent559eea356de5b2fb630f8da5dff46cb1b73d2cf8 (diff)
parentf5d174948bf4e2fa6fca8024168a40af922a30a9 (diff)
Merge remote-tracking branch 'kali/feature/add_line_profiler_target' into develop
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 564fbe15..25d2bcf5 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,10 @@ COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%_rc.py)
DEBVER = $(shell dpkg-parsechangelog | sed -ne 's,Version: ,,p')
+ifndef EDITOR
+ export EDITOR=vim
+endif
+
#
all : resources ui
@@ -67,5 +71,11 @@ apidocs:
mailprofile:
gprof2dot -f pstats /tmp/leap_mail_profile.pstats -n 0.2 -e 0.2 | dot -Tpdf -o /tmp/leap_mail_profile.pdf
+do_lineprof:
+ LEAP_PROFILE_IMAPCMD=1 LEAP_MAIL_MANHOLE=1 kernprof.py -l src/leap/bitmask/app.py --offline --debug
+
+view_lineprof:
+ @python -m line_profiler app.py.lprof | $(EDITOR) -
+
clean :
$(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)