fix performance record, add global makefile.

This commit is contained in:
NunoSempere 2023-07-22 21:49:00 +02:00
parent fee06aec65
commit 3f70915903
10 changed files with 13 additions and 5 deletions

Binary file not shown.

View File

@ -48,6 +48,6 @@ profile-linux:
echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
echo "Must be run as sudo"
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
sudo perf record $(OUTPUT)
sudo perf record ./$(OUTPUT)
sudo perf report
rm perf.data

Binary file not shown.

View File

@ -48,6 +48,6 @@ profile-linux:
echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
echo "Must be run as sudo"
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
sudo perf record $(OUTPUT)
sudo perf record ./$(OUTPUT)
sudo perf report
rm perf.data

View File

@ -52,6 +52,6 @@ profile-linux:
echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
echo "Must be run as sudo"
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
sudo perf record $(OUTPUT)
sudo perf record ./$(OUTPUT)
sudo perf report
rm perf.data

View File

@ -52,6 +52,6 @@ profile-linux:
echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
echo "Must be run as sudo"
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
sudo perf record $(OUTPUT)
sudo perf record ./$(OUTPUT)
sudo perf report
rm perf.data

View File

@ -53,6 +53,6 @@ profile-linux:
echo "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
echo "Must be run as sudo"
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
sudo perf record $(OUTPUT)
sudo perf record ./$(OUTPUT)
sudo perf report
rm perf.data

8
makefile Normal file
View File

@ -0,0 +1,8 @@
MAKEFLAGS += --no-print-directory
all:
cd examples/01_one_sample && make && echo
cd examples/02_many_samples && make && echo
cd examples/03_gcc_nested_function && make && echo
cd examples/04_sample_from_cdf_simple && make && echo
cd examples/05_sample_from_cdf_beta && make && echo