...
Package symbolizer
import "cmd/vendor/github.com/google/pprof/internal/symbolizer"
- Overview
- Index
Package symbolizer provides a routine to populate a profile with
symbol, file and line number information. It relies on the
addr2liner and demangle packages to do the actual work.
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
func Demangle(prof *profile.Profile, force bool, demanglerMode string)
Demangle updates the function names in a profile with demangled C++
names, simplified according to demanglerMode. If force is set,
overwrite any names that appear already demangled.
type Symbolizer struct {
Obj plugin.ObjTool
UI plugin.UI
Transport http.RoundTripper
}
Symbolizer implements the plugin.Symbolize interface.
func (*Symbolizer) Symbolize
func (s *Symbolizer) Symbolize(mode string, sources plugin.MappingSources, p *profile.Profile) error
Symbolize attempts to symbolize profile p. First uses binutils on
local binaries; if the source is a URL it attempts to get any
missed entries using symbolz.