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

Method shutdownPprof

sdk/cliproxy/pprof_server.go:37–42  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

35}
36
37func (s *Service) shutdownPprof(ctx context.Context) error {
38 if s == nil || s.pprofServer == nil {
39 return nil
40 }
41 return s.pprofServer.Shutdown(ctx)
42}
43
44func (p *pprofServer) Apply(cfg *config.Config) {
45 if p == nil || cfg == nil {

Callers 1

ShutdownMethod · 0.95

Calls 1

ShutdownMethod · 0.65

Tested by

no test coverage detected