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

Method SourceLine

internal/binutils/binutils.go:693–706  ·  view source on GitHub ↗
(addr uint64)

Source from the content-addressed store, hash-verified

691}
692
693func (f *fileAddr2Line) SourceLine(addr uint64) ([]plugin.Frame, error) {
694 f.baseOnce.Do(func() { f.baseErr = f.computeBase(addr) })
695 if f.baseErr != nil {
696 return nil, f.baseErr
697 }
698 f.once.Do(f.init)
699 if f.llvmSymbolizer != nil {
700 return f.llvmSymbolizer.addrInfo(addr)
701 }
702 if f.addr2liner != nil {
703 return f.addr2liner.addrInfo(addr)
704 }
705 return nil, fmt.Errorf("could not find local addr2liner")
706}
707
708func (f *fileAddr2Line) init() {
709 if llvmSymbolizer, err := newLLVMSymbolizer(f.b.llvmSymbolizer, f.name, f.base, f.isData); err == nil {

Callers

nothing calls this directly

Calls 2

computeBaseMethod · 0.80
addrInfoMethod · 0.45

Tested by

no test coverage detected