forked from personal/squiggle.c
fix performance record, add global makefile.
This commit is contained in:
parent
fee06aec65
commit
3f70915903
Binary file not shown.
|
@ -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 "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
|
||||||
echo "Must be run as sudo"
|
echo "Must be run as sudo"
|
||||||
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
||||||
sudo perf record $(OUTPUT)
|
sudo perf record ./$(OUTPUT)
|
||||||
sudo perf report
|
sudo perf report
|
||||||
rm perf.data
|
rm perf.data
|
||||||
|
|
Binary file not shown.
|
@ -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 "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
|
||||||
echo "Must be run as sudo"
|
echo "Must be run as sudo"
|
||||||
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
||||||
sudo perf record $(OUTPUT)
|
sudo perf record ./$(OUTPUT)
|
||||||
sudo perf report
|
sudo perf report
|
||||||
rm perf.data
|
rm perf.data
|
||||||
|
|
Binary file not shown.
|
@ -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 "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
|
||||||
echo "Must be run as sudo"
|
echo "Must be run as sudo"
|
||||||
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
||||||
sudo perf record $(OUTPUT)
|
sudo perf record ./$(OUTPUT)
|
||||||
sudo perf report
|
sudo perf report
|
||||||
rm perf.data
|
rm perf.data
|
||||||
|
|
Binary file not shown.
|
@ -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 "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
|
||||||
echo "Must be run as sudo"
|
echo "Must be run as sudo"
|
||||||
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
||||||
sudo perf record $(OUTPUT)
|
sudo perf record ./$(OUTPUT)
|
||||||
sudo perf report
|
sudo perf report
|
||||||
rm perf.data
|
rm perf.data
|
||||||
|
|
|
@ -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 "Requires perf, which depends on the kernel version, and might be in linux-tools package or similar"
|
||||||
echo "Must be run as sudo"
|
echo "Must be run as sudo"
|
||||||
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
$(CC) $(SRC) $(MATH) -o $(OUTPUT)
|
||||||
sudo perf record $(OUTPUT)
|
sudo perf record ./$(OUTPUT)
|
||||||
sudo perf report
|
sudo perf report
|
||||||
rm perf.data
|
rm perf.data
|
||||||
|
|
8
makefile
Normal file
8
makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user