mirror of
https://codeberg.org/scip/golsky.git
synced 2025-12-16 20:20:57 +01:00
added profiling target, makes it easier
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,5 +1,8 @@
|
|||||||
.PHONY: all
|
.PHONY all:
|
||||||
all:
|
all: build
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build:
|
||||||
make -C src
|
make -C src
|
||||||
mv src/golsky .
|
mv src/golsky .
|
||||||
|
|
||||||
@@ -7,3 +10,8 @@ all:
|
|||||||
clean:
|
clean:
|
||||||
make -C src clean
|
make -C src clean
|
||||||
rm -f dump* rect*
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user