-
Start the dagger engine using the
--debugaddr
flag when starting the engine, e.g.--debugaddr=0.0.0.0:6060
- The dev dagger engine started with
./hack/build
starts with this by default.
- The dev dagger engine started with
-
Capture a profile using
go tool
:$ go tool pprof -raw -output=cpuproc.txt 'http://<engine-ip>:6060/debug/pprof/profile?seconds=30'