golang/go

runtime/trace: implement user events

Open

#16,619 opened on Aug 5, 2016

View on GitHub
 (15 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsFixearly-in-cyclehelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 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.)

Contributor guide