fix: add profile dependency to graph target

Makes graph target depend on profile to ensure cpu.prof exists
before attempting to generate visualizations.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
M.V. Hutz
2026-01-10 16:29:25 -05:00
parent bb48d0777b
commit 3158c35df2

View File

@@ -29,7 +29,7 @@ explain: it
@ mkdir -p profile @ mkdir -p profile
@ ./lambda -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out @ ./lambda -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
graph: graph: profile
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof @ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg @ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
@ echo "Profile graph saved to 'file://profile/cpu.svg'" @ echo "Profile graph saved to 'file://profile/cpu.svg'"