// viewerFrames returns the frames of the stack of ev. The given frame slice is // used to store the frames to reduce allocations. func viewerFrames(stk trace.Stack) []*trace.Frame { … } func viewerGState(state trace.GoState, inMarkAssist bool) traceviewer.GState { … } func viewerTime(t time.Duration) float64 { … }