diff options
author | johannst <johannst@users.noreply.github.com> | 2024-01-23 01:39:29 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2024-01-23 01:39:29 +0000 |
commit | 6dbf014773f5f8ac0b0e291392dfde518de94daf (patch) | |
tree | f48b103633621acc4c4d6b272fd67f3d86cc2ae2 /trace_profile/callgrind/Makefile | |
parent | c4fdf1c5f2c9ebedd0dedba4449c015f98aecda5 (diff) | |
download | notes-6dbf014773f5f8ac0b0e291392dfde518de94daf.tar.gz notes-6dbf014773f5f8ac0b0e291392dfde518de94daf.zip |
deploy: 8c9fd06e839c06717dd2dcb067371a5e1fc71801
Diffstat (limited to 'trace_profile/callgrind/Makefile')
-rw-r--r-- | trace_profile/callgrind/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/trace_profile/callgrind/Makefile b/trace_profile/callgrind/Makefile new file mode 100644 index 0000000..0da099c --- /dev/null +++ b/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 |