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