gotools/gopls/internal/debug/trace.go

var TraceTmpl

type traces

type spanStartEnd

func (ev spanStartEnd) Time() time.Time {}

type TraceResults

type traceSet

type traceSpan

const timeFormat

// Header renders the time, name, tags, and (if !start),
// duration of a span start or end event.
func (span *traceSpan) Header(start bool) string {}

type traceEvent

func (ev traceEvent) Header() string {}

func StdTrace(exporter event.Exporter) event.Exporter {}

func formatEvent(ev core.Event, lm label.Map) string {}

func (t *traces) ProcessEvent(ctx context.Context, ev core.Event, lm label.Map) context.Context {}

// addRecentLocked appends a start or end event to the "recent" log,
// evicting an old entry if necessary.
func (t *traces) addRecentLocked(span *traceSpan, start bool) {}

// getData returns the TraceResults rendered by TraceTmpl for the /trace[/name] endpoint.
func (t *traces) getData(req *http.Request) interface{}

func fillOffsets(td *traceSpan, start time.Time) {}

func renderLabels(labels label.List) string {}