From 89d25db9e764ef318135eed4f8e8510fe61edf79 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 15 Jul 2024 14:21:03 +0200 Subject: [PATCH] added profiling target, makes it easier --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90d883f..02f6ec1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -.PHONY: all -all: +.PHONY all: +all: build + +.PHONY: build +build: make -C src mv src/golsky . @@ -7,3 +10,8 @@ all: clean: make -C src clean rm -f dump* rect* + +.PHONY: profile +profile: build + ./golsky -W 1500 -H 1500 -d --profile-file cpu.profile + go tool pprof --http localhost:8888 golsky cpu.profile