defaultProfileCollector delegates to the real runtime/pprof and runtime/trace packages.
| 359 | // defaultProfileCollector delegates to the real runtime/pprof and |
| 360 | // runtime/trace packages. |
| 361 | type defaultProfileCollector struct{} |
| 362 | |
| 363 | func (defaultProfileCollector) StartCPUProfile(w io.Writer) (func(), error) { |
| 364 | if err := pprof.StartCPUProfile(w); err != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected