summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-03-05 15:28:08 -0400
committerKali Kaneko <kali@leap.se>2014-03-05 15:40:21 -0400
commit06c8d6f98768f173854585e3c9b36c4fa6bfe753 (patch)
tree980f425c4163ca02dd297834a9b1ec082c932f7e /Makefile
parent496a4f8286e74daff080b52b02c49f130de03bc3 (diff)
script to graph cpu/mem usage. Related: #5259
Use as: RESOURCE_TIME=5 make resource_graph where RESOURCE_TIME are the minutes to run for.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25d2bcf5..2bd39eb0 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,10 @@ ifndef EDITOR
export EDITOR=vim
endif
+ifndef RESOURCE_TIME
+ export RESOURCE_TIME=10
+endif
+
#
all : resources ui
@@ -77,5 +81,9 @@ do_lineprof:
view_lineprof:
@python -m line_profiler app.py.lprof | $(EDITOR) -
+resource_graph:
+ ./pkg/scripts/monitor_resource.zsh `pgrep bitmask` $(RESOURCE_TIME)
+ display bitmask-resources.png
+
clean :
$(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)