diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-02-19 15:39:34 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-02-19 15:39:34 -0300 |
commit | 3102cea29c518b1c6cd8d639a22d92e5ca772027 (patch) | |
tree | 89172f0db0ac1adc7fc4d5c423274f5cb0f4cb66 | |
parent | 559eea356de5b2fb630f8da5dff46cb1b73d2cf8 (diff) | |
parent | f5d174948bf4e2fa6fca8024168a40af922a30a9 (diff) |
Merge remote-tracking branch 'kali/feature/add_line_profiler_target' into develop
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |