aboutsummaryrefslogtreecommitdiffhomepage
path: root/trace_profile/callgrind/Makefile
blob: 0da099cafb45fb6146f4b8e715faddd4fe50f4ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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