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

Method StartCPUProfile

coderd/debug.go:346–346  ·  view source on GitHub ↗

StartCPUProfile begins CPU profiling, writing to w. It returns a stop function that must be called to finish profiling.

(w io.Writer)

Source from the content-addressed store, hash-verified

344 // StartCPUProfile begins CPU profiling, writing to w. It returns
345 // a stop function that must be called to finish profiling.
346 StartCPUProfile(w io.Writer) (stop func(), err error)
347 // StartTrace begins execution tracing, writing to w. It returns
348 // a stop function that must be called to finish tracing.
349 StartTrace(w io.Writer) (stop func(), err error)

Callers 2

StartCPUProfileMethod · 0.65
debugCollectProfileMethod · 0.65

Implementers 2

noopProfileCollectorcoderd/debug_test.go

Calls

no outgoing calls

Tested by

no test coverage detected