Skip to content

Commit

Permalink
Initialize trace in goroutine list of function info
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh committed Mar 25, 2024
1 parent be2e160 commit b8d0ba9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gotraceui/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func (fi *FunctionInfo) Layout(win *theme.Window, gtx layout.Context) layout.Dim
gs = fi.fn.Goroutines
}
if fi.goroutineList.Goroutines.Len() == 0 || len(gs) == 0 || &gs[0] != &fi.goroutineList.Goroutines.Items[0] {
fi.goroutineList.Trace = fi.trace
fi.goroutineList.SetGoroutines(win, gtx, gs)
}
return fi.goroutineList.Layout(win, gtx)
Expand Down

0 comments on commit b8d0ba9

Please sign in to comment.