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

Method openMachO

internal/binutils/binutils.go:418–426  ·  view source on GitHub ↗
(name string, start, limit, offset uint64)

Source from the content-addressed store, hash-verified

416}
417
418func (b *binrep) openMachO(name string, start, limit, offset uint64) (plugin.ObjFile, error) {
419 of, err := macho.Open(name)
420 if err != nil {
421 return nil, fmt.Errorf("error parsing %s: %v", name, err)
422 }
423 defer of.Close()
424
425 return b.openMachOCommon(name, of, start, limit, offset)
426}
427
428func (b *binrep) openELF(name string, start, limit, offset uint64, relocationSymbol string) (plugin.ObjFile, error) {
429 ef, err := elfOpen(name)

Callers 1

OpenMethod · 0.80

Calls 3

openMachOCommonMethod · 0.95
OpenMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected