net/http/pprof,runtime/pprof: document expected overhead of profiling #65208
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
A common question from users is how much overhead it is to add profiling (most commonly through
net/http/pprof
) into a running production system, and whether it's safe to just leave it in a non-debug build.The package doc should state the expected / target impact of just importing the package (negligible?) and when actively running a cpu/memory profile.
The last time the Go project seems to have said something about this was 10 years ago in a blog post while people appear to cite 5% coming from Google Cloud Profiler
The text was updated successfully, but these errors were encountered: