MCPcopy
hub / github.com/github/github-mcp-server / New

Function New

internal/profiler/profiler.go:65–70  ·  view source on GitHub ↗

New creates a new Profiler instance

(logger *slog.Logger, enabled bool)

Source from the content-addressed store, hash-verified

63
64// New creates a new Profiler instance
65func New(logger *slog.Logger, enabled bool) *Profiler {
66 return &Profiler{
67 logger: logger,
68 enabled: enabled,
69 }
70}
71
72// ProfileFunc profiles a function execution
73func (p *Profiler) ProfileFunc(ctx context.Context, operation string, fn func() error) (*Profile, error) {

Callers 3

downloadLogContentFunction · 0.92
InitFunction · 0.85
InitFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected