aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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