From 3158c35df2743d5341ebc76b526dc647c3494081 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sat, 10 Jan 2026 16:29:25 -0500 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c082662..edcc7e9 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ explain: it @ mkdir -p profile @ ./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 -svg profile/cpu.prof > profile/cpu.svg @ echo "Profile graph saved to 'file://profile/cpu.svg'"