From 1bfd885ad36af68bb5348ee92560553f9829ef2f Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Sat, 1 Mar 2025 13:56:44 +0330 Subject: Speed optimizations. If you can help with the memory allocator's efficiency, please lmk! --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d079677..01e6e0a 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,11 @@ c: test: ./out.bin +profile: + clang main.c -o out.bin.profile $(FLAGS) -O3 + perf record ./out.bin.profile + perf report > ./out.profile.txt + # useless. it don't work. # profile: # clang -D__MOONSHINE_PROFILER main.c -o out.bin.profile $(FLAGS) $(SIZE_FLAGS) -fprofile-generate -- cgit v1.2.3