IsProfilingEnabled checks if profiling is enabled via environment variables
()
| 173 | |
| 174 | // IsProfilingEnabled checks if profiling is enabled via environment variables |
| 175 | func 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 |
| 183 | func Init(logger *slog.Logger, enabled bool) { |
no outgoing calls
no test coverage detected