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

Method Symbols

browsertests/testutils.go:74–89  ·  view source on GitHub ↗
(r *regexp.Regexp, addr uint64)

Source from the content-addressed store, hash-verified

72 return nil, fmt.Errorf("SourceLine unimplemented")
73}
74func (f fakeObj) Symbols(r *regexp.Regexp, addr uint64) ([]*driver.Sym, error) {
75 return []*driver.Sym{
76 {
77 Name: []string{"F1"}, File: fakeSource,
78 Start: addrBase, End: addrBase + 10,
79 },
80 {
81 Name: []string{"F2"}, File: fakeSource,
82 Start: addrBase + 10, End: addrBase + 20,
83 },
84 {
85 Name: []string{"F3"}, File: fakeSource,
86 Start: addrBase + 20, End: addrBase + 30,
87 },
88 }, nil
89}
90
91type fakeObjTool struct{}
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected