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

Method set

profile/merge.go:568–574  ·  view source on GitHub ↗
(id uint64, loc *Location)

Source from the content-addressed store, hash-verified

566}
567
568func (lm locationIDMap) set(id uint64, loc *Location) {
569 if id < uint64(len(lm.dense)) {
570 lm.dense[id] = loc
571 return
572 }
573 lm.sparse[id] = loc
574}
575
576// CompatibilizeSampleTypes makes profiles compatible to be compared/merged. It
577// keeps sample types that appear in all profiles only and drops/reorders the

Callers 3

mapLocationMethod · 0.45
TestLocationIDMapFunction · 0.45
fetchBoxesFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestLocationIDMapFunction · 0.36