fix profile git target

This commit is contained in:
2026-04-04 20:14:26 -07:00
parent 5f721e455d
commit 2643620a98

View File

@@ -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/*