golang/go

runtime/trace: implement user events

Open

#16.619 aperta il 5 ago 2016

Vedi su GitHub
 (15 commenti) (0 reazioni) (0 assegnatari)Go (19.008 fork)batch import
NeedsFixearly-in-cyclehelp wanted

Metriche repository

Star
 (133.883 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.)

Guida contributor