(w io.Writer)
| 361 | type defaultProfileCollector struct{} |
| 362 | |
| 363 | func (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 | |
| 370 | func (defaultProfileCollector) StartTrace(w io.Writer) (func(), error) { |
| 371 | if err := trace.Start(w); err != nil { |
nothing calls this directly
no test coverage detected