code: func (p *Profile) ParseMemoryMapFromScanner(s *bufio.Scanner) error {
  	mapping, err := parseProcMapsFromScanner(s)
  	if err != nil {
  		return err
  	}
  	p.Mapping = append(p.Mapping, mapping...)
  	p.massageMappings()
  	p.remapLocationIDs()
  	p.remapFunctionIDs()
  	p.remapMappingIDs()
  	return nil
  }
docs: // ParseMemoryMapFromScanner parses a memory map in the format of
  // /proc/self/maps or a variety of legacy format, and overrides the
  // mappings in the current profile.  It renumbers the samples and
  // locations in the profile correspondingly.