aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-10-26 19:28:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-10-26 19:28:57 -0400
commit0e0269def1e97f774a0843fde00c3f50ed0e9cff (patch)
treee9a0b78587f4f9216e03208b2c12f4c94ff42182 /Makefile
parent9e07e08a4888bbc2d479204f6ef2b7cd42c44085 (diff)
Added new profile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ba5fd3a..5281b96 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,10 @@ uninstall:
[ "$$confirm" != n ] && rm -rf ~/.config/$(NAME); \
fi
-profile:
+profile_grammar:
perf stat -r 100 -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
+profile_pattern:
+ perf stat -r 1 -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores -e cycles bp -f plain -p 'id parens' /usr/include/*.h >/dev/null
+
.PHONY: all clean install install-lib uninstall leaktest splint test tutorial lua profile