MCPcopy Create free account
hub / github.com/google/pprof / fillPlaces

Method fillPlaces

internal/report/stacks.go:186–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184}
185
186func (s *StackSet) fillPlaces() {
187 for i, stack := range s.Stacks {
188 seenSrcs := map[int]bool{}
189 for j, src := range stack.Sources {
190 if seenSrcs[src] {
191 continue
192 }
193 seenSrcs[src] = true
194 s.Sources[src].Places = append(s.Sources[src].Places, StackSlot{i, j})
195 }
196 }
197}
198
199// pickColor picks a color for key.
200func pickColor(key string) int {

Callers 1

StacksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected