(cfg *config.Config)
| 25 | } |
| 26 | |
| 27 | func (s *Service) applyPprofConfig(cfg *config.Config) { |
| 28 | if s == nil || cfg == nil { |
| 29 | return |
| 30 | } |
| 31 | if s.pprofServer == nil { |
| 32 | s.pprofServer = newPprofServer() |
| 33 | } |
| 34 | s.pprofServer.Apply(cfg) |
| 35 | } |
| 36 | |
| 37 | func (s *Service) shutdownPprof(ctx context.Context) error { |
| 38 | if s == nil || s.pprofServer == nil { |
no test coverage detected