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

Method get

profile/merge.go:561–566  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

559}
560
561func (lm locationIDMap) get(id uint64) *Location {
562 if id < uint64(len(lm.dense)) {
563 return lm.dense[int(id)]
564 }
565 return lm.sparse[id]
566}
567
568func (lm locationIDMap) set(id uint64, loc *Location) {
569 if id < uint64(len(lm.dense)) {

Callers 4

mapLocationMethod · 0.45
TestLocationIDMapFunction · 0.45
rectFunction · 0.45
TestFlameFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestLocationIDMapFunction · 0.36