...

Package symbolizer

import "cmd/vendor/github.com/google/pprof/internal/symbolizer"
Overview
Index

Overview ▾

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.

func Demangle

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

Symbolizer implements the plugin.Symbolize interface.

type Symbolizer struct {
    Obj       plugin.ObjTool
    UI        plugin.UI
    Transport http.RoundTripper
}

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.