From 6b8f1a09d01dbd894988edeb9fb167a3389a4846 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 26 Oct 2022 13:19:38 -0400 Subject: [PATCH] Added profile rule --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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