- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for locationsByID (0.1 sec)
-
src/internal/profile/merge.go
locations string labels string numlabels string } func (pm *profileMerger) mapLocation(src *Location) *Location { if src == nil { return nil } if l, ok := pm.locationsByID[src.ID]; ok { pm.locationsByID[src.ID] = l return l } mi := pm.mapMapping(src.Mapping) l := &Location{ ID: uint64(len(pm.p.Location) + 1), Mapping: mi.m,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 17 19:35:56 UTC 2020 - 11.3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/merge.go
} // Check memoization table. Must be done on the remapped location to // account for the remapped mapping ID. k := l.key() if ll, ok := pm.locations[k]; ok { pm.locationsByID.set(src.ID, ll) return ll } pm.locationsByID.set(src.ID, l) pm.locations[k] = l pm.p.Location = append(pm.p.Location, l) return l } // key generates locationKey to be used as a key for maps.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17K bytes - Viewed (0)