tweak perf makefile command

This commit is contained in:
NunoSempere 2023-06-03 01:37:42 -06:00
parent a13a042492
commit d229021625
2 changed files with 2 additions and 1 deletions

View File

@ -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

Binary file not shown.