From 2cee0b6c1225d96cfd46274071a6f158c411cae7 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 23 Jan 2024 00:42:53 +0100 Subject: callgrind: initial notes --- src/trace_profile/callgrind/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/trace_profile/callgrind/Makefile (limited to 'src/trace_profile/callgrind/Makefile') diff --git a/src/trace_profile/callgrind/Makefile b/src/trace_profile/callgrind/Makefile new file mode 100644 index 0000000..0da099c --- /dev/null +++ b/src/trace_profile/callgrind/Makefile @@ -0,0 +1,14 @@ +prof: cg_example + valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no -- ./cg_example + +prof-cache: cg_example + valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no --cache-sim=yes -- ./cg_example + +show: + callgrind_annotate + +cg_example: cg_example.cc + clang++ -o cg_example -Wall -Wextra -O2 -g -fno-inline cg_example.cc -lpthread + +clean: + $(RM) callgrind.* cg_example -- cgit v1.2.3