// readMapping reads /proc/self/maps and writes mappings to b.pb. // It saves the address ranges of the mappings in b.mem for use // when emitting locations. func (b *profileBuilder) readMapping() { … } func readMainModuleMapping() (start, end uint64, exe, buildID string, err error) { … }