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

Method StartCPUProfile

coderd/debug.go:363–368  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

361type defaultProfileCollector struct{}
362
363func (defaultProfileCollector) StartCPUProfile(w io.Writer) (func(), error) {
364 if err := pprof.StartCPUProfile(w); err != nil {
365 return nil, err
366 }
367 return pprof.StopCPUProfile, nil
368}
369
370func (defaultProfileCollector) StartTrace(w io.Writer) (func(), error) {
371 if err := trace.Start(w); err != nil {

Callers

nothing calls this directly

Calls 1

StartCPUProfileMethod · 0.65

Tested by

no test coverage detected