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

Method SourceLine

driver/driver.go:175–175  ·  view source on GitHub ↗

SourceLine reports the source line information for a given address in the file. Due to inlining, the source line information is in general a list of positions representing a call stack, with the leaf function first.

(addr uint64)

Source from the content-addressed store, hash-verified

173 // is in general a list of positions representing a call stack,
174 // with the leaf function first.
175 SourceLine(addr uint64) ([]Frame, error)
176
177 // Symbols returns a list of symbols in the object file.
178 // If r is not nil, Symbols restricts the list to symbols

Callers 6

TestObjFileFunction · 0.65
TestMachoFilesFunction · 0.65
TestPEFileFunction · 0.65
symbolizeOneMappingFunction · 0.65
expandAddressesMethod · 0.65
SourceLineMethod · 0.65

Implementers 6

fileinternal/binutils/binutils.go
testFileinternal/driver/fetch_test.go
fakeObjinternal/driver/webui_test.go
mockFileinternal/driver/driver_test.go
mockObjFileinternal/symbolizer/symbolizer_test.go
fakeObjbrowsertests/testutils.go

Calls

no outgoing calls

Tested by 3

TestObjFileFunction · 0.52
TestMachoFilesFunction · 0.52
TestPEFileFunction · 0.52