Documentation ¶
Overview ¶
Package profile implements functions for profiling the router
This package automatically registers pprof handlers if the build tag "pprof". Additionally, the following flags are available: -cpuprofile: write cpu profile to file -memprofile: write memory profile to this file -pprof-port: port for pprof server, set to zero to disable (only with pprof build tag)
Note that exposing pprof handlers in production is a security risk.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.