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

Function findSymbol

internal/binutils/binutils_test.go:322–329  ·  view source on GitHub ↗
(syms []*plugin.Sym, name string)

Source from the content-addressed store, hash-verified

320}
321
322func findSymbol(syms []*plugin.Sym, name string) *plugin.Sym {
323 for _, s := range syms {
324 if slices.Contains(s.Name, name) {
325 return s
326 }
327 }
328 return nil
329}
330
331func TestObjFile(t *testing.T) {
332 // If this test fails, check the address for main function in testdata/exe_linux_64

Callers 3

TestObjFileFunction · 0.85
TestMachoFilesFunction · 0.85
TestPEFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…