summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-03-10 03:31:32 -0400
committerKali Kaneko <kali@leap.se>2014-03-10 03:31:32 -0400
commit806fe6f8f6664da99f5405af5a831f0e48e3fe64 (patch)
tree07acb89a41a7fc893188d0ea564919a31433524b
parent61b12ad3a7c941f5d4c4b7f674d7ae397efbb30b (diff)
comment workaround for systems w/o pgrep
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b637fefc..cb1f8218 100644
--- a/Makefile
+++ b/Makefile
@@ -76,13 +76,16 @@ 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
+ LEAP_PROFILE_IMAPCMD=1 LEAP_MAIL_MANHOLE=1 kernprof.py -l src/leap/bitmask/app.py --debug
+
+do_lineprof_offline:
+ LEAP_PROFILE_IMAPCMD=1 LEAP_MAIL_MANHOLE=1 kernprof.py -l src/leap/bitmask/app.py --offline --debug -N
view_lineprof:
@python -m line_profiler app.py.lprof | $(EDITOR) -
resource_graph:
- #./pkg/scripts/monitor_resource.zsh `pgrep twistd` $(RESOURCE_TIME)
+ #./pkg/scripts/monitor_resource.zsh `ps aux | grep app.py | head -1 | awk '{print $$2}'` $(RESOURCE_TIME)
./pkg/scripts/monitor_resource.zsh `pgrep bitmask` $(RESOURCE_TIME)
display bitmask-resources.png