feat: add file input flag #12

Merged
mvhutz merged 2 commits from feat/file-input-flag into main 2026-01-11 21:43:12 +00:00
Showing only changes of commit 9ab004bec4 - Show all commits

View File

@@ -20,13 +20,13 @@ build:
chmod +x ${BINARY_NAME} chmod +x ${BINARY_NAME}
run: build run: build
./${BINARY_NAME} - < ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -f ./samples/$(TEST).txt > program.out
profile: build profile: build
./${BINARY_NAME} -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -p profile/cpu.prof -f ./samples/$(TEST).txt > program.out
explain: build explain: build
./${BINARY_NAME} -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out ./${BINARY_NAME} -x -p profile/cpu.prof -f ./samples/$(TEST).txt > 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