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

Method Symbols

internal/binutils/binutils.go:647–656  ·  view source on GitHub ↗
(r *regexp.Regexp, addr uint64)

Source from the content-addressed store, hash-verified

645}
646
647func (f *file) Symbols(r *regexp.Regexp, addr uint64) ([]*plugin.Sym, error) {
648 // Get from nm a list of symbols sorted by address.
649 cmd := exec.Command(f.b.nm, "-n", f.name)
650 out, err := cmd.Output()
651 if err != nil {
652 return nil, fmt.Errorf("%v: %v", cmd.Args, err)
653 }
654
655 return findSymbols(out, f.name, r, addr)
656}
657
658// fileNM implements the binutils.ObjFile interface, using 'nm' to map
659// addresses to symbols (without file/line number information). It is

Callers

nothing calls this directly

Calls 1

findSymbolsFunction · 0.85

Tested by

no test coverage detected