From 2643620a980dfa2c967393a0aaecf9e8a7237c32 Mon Sep 17 00:00:00 2001 From: Steve Dunham Date: Sat, 4 Apr 2026 20:14:26 -0700 Subject: [PATCH] fix profile git target --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7cd2249..2d720d5 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,12 @@ vscode-lsp vscode: lsp playground: .PHONY cd playground && ./build -profile: .PHONY - rm isolate* build/* - node --prof build/newt.js -o build/newt2.js src/Main.newt - node --prof-process isolate* > profile.txt +# prettify newt2 (the version built by latest newt) and run a profile on it +profile: .PHONY build/newt.js build/newt2.js + rm -f isolate* + prettier -w build/newt2.js --ignore-path junk.js + node --prof build/newt2.js -o build/newt3.js src/Main.newt + node --prof-process isolate* > build/profile.txt clean: rm build/*