You can find the implementation here.
Download or build znnd from source and start it (default address is http://localhost:6060):
./znnd --pprof
Download and install the pprof tool:
go install github.com/google/pprof@latest
Here is a step-by-step tutorial.