refactor: use -o flag in Makefile targets.

This commit is contained in:
2026-01-11 16:50:59 -05:00
parent 9bd75cf409
commit 309748e3cb

View File

@@ -20,13 +20,13 @@ build:
chmod +x ${BINARY_NAME} chmod +x ${BINARY_NAME}
run: build run: build
./${BINARY_NAME} -f ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -f ./samples/$(TEST).txt -o program.out
profile: build profile: build
./${BINARY_NAME} -p profile/cpu.prof -f ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -p profile/cpu.prof -f ./samples/$(TEST).txt -o program.out
explain: build explain: build
./${BINARY_NAME} -x -p profile/cpu.prof -f ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -x -p profile/cpu.prof -f ./samples/$(TEST).txt -o program.out
graph: graph:
go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof