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

Method ObjAddr

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

Source from the content-addressed store, hash-verified

621}
622
623func (f *file) ObjAddr(addr uint64) (uint64, error) {
624 f.baseOnce.Do(func() { f.baseErr = f.computeBase(addr) })
625 if f.baseErr != nil {
626 return 0, f.baseErr
627 }
628 return addr - f.base, nil
629}
630
631func (f *file) BuildID() string {
632 return f.buildID

Callers

nothing calls this directly

Calls 1

computeBaseMethod · 0.95

Tested by

no test coverage detected