MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / applyPprofConfig

Method applyPprofConfig

sdk/cliproxy/pprof_server.go:27–35  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

25}
26
27func (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
37func (s *Service) shutdownPprof(ctx context.Context) error {
38 if s == nil || s.pprofServer == nil {

Callers 2

RunMethod · 0.95

Calls 2

newPprofServerFunction · 0.85
ApplyMethod · 0.65

Tested by

no test coverage detected