Files
lambda/Makefile

22 lines
543 B
Makefile

BINARY_NAME=lambda.exe
it:
@ go build -o ${BINARY_NAME} ./cmd/lambda
@ chmod +x ${BINARY_NAME}
TEST=simple
run: it
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
profile: it
@ ./lambda.exe -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
explain: it
@ ./lambda.exe -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
graph:
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
@ echo "Profile graph saved to 'file://profile/cpu.svg'"