run.mk: Move callgrind rules into profiler-rules-run.mk

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-12-11 18:50:49 +00:00
commit 2bd0be469a

View file

@ -126,23 +126,6 @@ vg-clean-supp:
clean.out: clean.out:
$(RM) -f run.out $(RM) -f run.out
callgrind: run-prereq
$(RM) -f core.*
valgrind --tool=callgrind $(VALGRIND_OPTS) $(EXE_PATH) $(EXE_ARGS)
callgrind-noinst: run-prereq
$(RM) -f core.*
valgrind --tool=callgrind $(VALGRIND_OPTS) --instr-atstart=no $(EXE_PATH) $(EXE_ARGS)
callgrind-startinst:
ps aux | grep callgrind | grep -v "grep\|make\|callgrind_control" | awk '{print $$2}' | xargs callgrind_control --instr=on
callgrind-stopinst:
ps aux | grep callgrind | grep -v "grep\|make\|callgrind_control" | awk '{print $$2}' | xargs callgrind_control --instr=off
callgrind-dump:
ps aux | grep callgrind | grep -v "grep\|make\|callgrind_control" | awk '{print $$2}' | xargs callgrind_control --dump
snap: snap:
killall -SIGUSR1 $(notdir $(EXE_PATH)) killall -SIGUSR1 $(notdir $(EXE_PATH))