Files
lambda/Makefile

22 lines
463 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
prof:
@ go tool pprof -top profile/cpu.prof
graph:
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
@ open profile/cpu.svg