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

Function IsProfilingEnabled

internal/profiler/profiler.go:175–180  ·  view source on GitHub ↗

IsProfilingEnabled checks if profiling is enabled via environment variables

()

Source from the content-addressed store, hash-verified

173
174// IsProfilingEnabled checks if profiling is enabled via environment variables
175func IsProfilingEnabled() bool {
176 if enabled, err := strconv.ParseBool(os.Getenv("GITHUB_MCP_PROFILING_ENABLED")); err == nil {
177 return enabled
178 }
179 return false
180}
181
182// Init initializes the global profiler
183func Init(logger *slog.Logger, enabled bool) {

Callers 2

downloadLogContentFunction · 0.92
InitFromEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected