MCPcopy Index your code
hub / github.com/github/github-mcp-server / Init

Function Init

internal/profiler/profiler.go:183–185  ·  view source on GitHub ↗

Init initializes the global profiler

(logger *slog.Logger, enabled bool)

Source from the content-addressed store, hash-verified

181
182// Init initializes the global profiler
183func Init(logger *slog.Logger, enabled bool) {
184 globalProfiler = New(logger, enabled)
185}
186
187// InitFromEnv initializes the global profiler using environment variables
188func InitFromEnv(logger *slog.Logger) {

Callers

nothing calls this directly

Calls 1

NewFunction · 0.85

Tested by

no test coverage detected