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

Method SourceLine

driver/driver.go:252–262  ·  view source on GitHub ↗
(frame uint64)

Source from the content-addressed store, hash-verified

250}
251
252func (f *internalObjFile) SourceLine(frame uint64) ([]plugin.Frame, error) {
253 frames, err := f.ObjFile.SourceLine(frame)
254 if err != nil {
255 return nil, err
256 }
257 var pluginFrames []plugin.Frame
258 for _, f := range frames {
259 pluginFrames = append(pluginFrames, plugin.Frame(f))
260 }
261 return pluginFrames, nil
262}
263
264func (f *internalObjFile) Symbols(r *regexp.Regexp, addr uint64) ([]*plugin.Sym, error) {
265 syms, err := f.ObjFile.Symbols(r, addr)

Callers

nothing calls this directly

Calls 2

FrameStruct · 0.92
SourceLineMethod · 0.65

Tested by

no test coverage detected