Profiling iglü server
iglü server has a profiler running by default, which you may check at
https://local.nacdlow.com[:8080]/debug/pprof/
.
You may use go tool pprof
to further analyse this, generating a graph of all
function calls and how long they take. You will need graphviz
package
installed on your system to do this.
Running the profiler
- Compile the server using
make
(don't usego run
!). - Run the server
./nacdlow-server run
- Do whatever you want, use the features you want to be profiled.
- Once you are done, run
go tool pprof nacdlow-server https://local.nacdlow.com:8080/debug/pprof/profile
. - You'll get a pprof shell, type
web
to run the web interface (this is different than the previous!). - View the profiler graph on the browser!