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

Function InitFromEnv

internal/profiler/profiler.go:188–190  ·  view source on GitHub ↗

InitFromEnv initializes the global profiler using environment variables

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

186
187// InitFromEnv initializes the global profiler using environment variables
188func InitFromEnv(logger *slog.Logger) {
189 globalProfiler = New(logger, IsProfilingEnabled())
190}
191
192// ProfileFunc profiles a function using the global profiler
193func ProfileFunc(ctx context.Context, operation string, fn func() error) (*Profile, error) {

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
IsProfilingEnabledFunction · 0.85

Tested by

no test coverage detected