tweak perf makefile command
This commit is contained in:
parent
a13a042492
commit
d229021625
|
@ -83,6 +83,7 @@ time-linux-simple:
|
|||
|
||||
profile-linux:
|
||||
echo "Requires perf, which depends on the kernel, and might be in linux-tools package or similar"
|
||||
echo "Must be run as sudo"
|
||||
$(CC) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT)
|
||||
# ./$(OUTPUT)
|
||||
# gprof:
|
||||
|
@ -91,7 +92,7 @@ profile-linux:
|
|||
# vim analysis.txt
|
||||
# rm analysis.txt
|
||||
# perf:
|
||||
perf record $(OUTPUT)
|
||||
OMP_NUM_THREADS=16 sudo perf record $(OUTPUT)
|
||||
perf report
|
||||
rm perf.data
|
||||
|
||||
|
|
BIN
C/out/samples
BIN
C/out/samples
Binary file not shown.
Loading…
Reference in New Issue
Block a user