golang/go

runtime/trace: implement user events

Open

#16.619 aberto em 5 de ago. de 2016

Ver no GitHub
 (15 comments) (0 reactions) (0 assignees)Go (19.008 forks)batch import
NeedsFixearly-in-cyclehelp wanted

Métricas do repositório

Stars
 (133.883 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

https://golang.org/s/go15trace specifies user events:

Runtime/pprof package also exposes a set of functions for emission of user events:

package pprof
func TraceEvent(id string)
func TraceScopeStart(id string)
func TraceScopeEnd(id string)

But there is no implementation at this time.

Those would be invaluable to properly debug latency problems.

(According to @dvyukov there is no one actively working on it, so I might give it a try.)

Guia do colaborador