aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-10-26 13:19:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-10-26 13:19:38 -0400
commit6b8f1a09d01dbd894988edeb9fb167a3389a4846 (patch)
treec4356b2e63b4617dcd407cbe7233ebdcf3e923bf /Makefile
parent302bfa11e7f8886f9f54d6c82ed34c8e4140cbae (diff)
Added profile rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c8e472..2670f87 100644
--- a/Makefile
+++ b/Makefile
@@ -94,4 +94,7 @@ uninstall:
[ "$$confirm" != n ] && rm -rf ~/.config/$(NAME); \
fi
-.PHONY: all clean install install-lib uninstall leaktest splint test tutorial lua
+profile:
+ perf stat -r 20 -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores -e cycles bp -f plain -g bp -p Grammar grammars/bp.bp >/dev/null
+
+.PHONY: all clean install install-lib uninstall leaktest splint test tutorial lua profile