Files
lambda/Makefile

26 lines
650 B
Makefile

BINARY_NAME=lambda.exe
it:
@ go build -o ${BINARY_NAME} ./cmd/lambda
@ chmod +x ${BINARY_NAME}
simple: it
@ ./lambda.exe -p profile/cpu.prof - < ./samples/simple.txt > program.out
thunk: it
@ ./lambda.exe -p profile/cpu.prof - < ./samples/thunk.txt > program.out
saccharine: it
@ ./lambda.exe -p profile/cpu.prof - < ./samples/saccharine.txt > program.out
church: it
@ ./lambda.exe -p profile/cpu.prof - < ./samples/church.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