aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/trace_profile/callgrind/Makefile
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-01-23 00:42:53 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-01-23 00:42:53 +0100
commit2cee0b6c1225d96cfd46274071a6f158c411cae7 (patch)
treea52b514ef7cbff80b3caa9f2879e85fb911ee9cc /src/trace_profile/callgrind/Makefile
parent42c4782598dae5728539b24f83ebafc3e33b7448 (diff)
downloadnotes-2cee0b6c1225d96cfd46274071a6f158c411cae7.tar.gz
notes-2cee0b6c1225d96cfd46274071a6f158c411cae7.zip
callgrind: initial notes
Diffstat (limited to 'src/trace_profile/callgrind/Makefile')
-rw-r--r--src/trace_profile/callgrind/Makefile14
1 files changed, 14 insertions, 0 deletions
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