On Thu, Jun 23, 2016 at 12:41 PM, Marcos Oliveira <marco...@gmail.com> wrote: > > We are to deploy a service in production and there's the question if we > should keep pprof and its HTTP handlers enabled by default in the service or > if we should have a flag that enables them when needed, but that would > require a restart of the service. > > Is a significant performance impact if we keep it enabled all the time?
There is no significant performance impact if the handler is enabled but not used. There is, naturally, some performance impact if somebody actually collects a profile. You may want to do something to ensure that only authorized users can collect a profile. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.