squiggle.c

Self-contained Monte Carlo estimation in C99
Log | Files | Refs | README

commit 3f709159036363345896546e3b4c11591daa6019
parent fee06aec65a5fc6061cdb254ec29264d7b647177
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sat, 22 Jul 2023 21:49:00 +0200

fix performance record, add global makefile.

Diffstat:
Mexamples/01_one_sample/example | 0
Mexamples/01_one_sample/makefile | 2+-
Mexamples/02_many_samples/example | 0
Mexamples/02_many_samples/makefile | 2+-
Mexamples/03_gcc_nested_function/example | 0
Mexamples/03_gcc_nested_function/makefile | 2+-
Mexamples/04_sample_from_cdf_simple/example | 0
Mexamples/04_sample_from_cdf_simple/makefile | 2+-
Mexamples/05_sample_from_cdf_beta/makefile | 2+-
Amakefile | 8++++++++
10 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/examples/01_one_sample/example b/examples/01_one_sample/example Binary files differ. diff --git a/examples/01_one_sample/makefile b/examples/01_one_sample/makefile @@ -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 diff --git a/examples/02_many_samples/example b/examples/02_many_samples/example Binary files differ. diff --git a/examples/02_many_samples/makefile b/examples/02_many_samples/makefile @@ -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 diff --git a/examples/03_gcc_nested_function/example b/examples/03_gcc_nested_function/example Binary files differ. diff --git a/examples/03_gcc_nested_function/makefile b/examples/03_gcc_nested_function/makefile @@ -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 diff --git a/examples/04_sample_from_cdf_simple/example b/examples/04_sample_from_cdf_simple/example Binary files differ. diff --git a/examples/04_sample_from_cdf_simple/makefile b/examples/04_sample_from_cdf_simple/makefile @@ -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 diff --git a/examples/05_sample_from_cdf_beta/makefile b/examples/05_sample_from_cdf_beta/makefile @@ -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 diff --git a/makefile b/makefile @@ -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