MCPcopy Index your code
hub / github.com/coder/coder / noopProfileCollector

Struct noopProfileCollector

coderd/debug_test.go:382–382  ·  view source on GitHub ↗

noopProfileCollector avoids calling process-global runtime functions (CPU profiler, tracer) so that tests can run in parallel safely.

Source from the content-addressed store, hash-verified

380// noopProfileCollector avoids calling process-global runtime functions
381// (CPU profiler, tracer) so that tests can run in parallel safely.
382type noopProfileCollector struct{}
383
384func (noopProfileCollector) StartCPUProfile(io.Writer) (func(), error) { return func() {}, nil }
385func (noopProfileCollector) StartTrace(io.Writer) (func(), error) { return func() {}, nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected