package symbolizer

import "github.com/google/pprof/internal/symbolizer"

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.

Index

Functions

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.

Types

type Symbolizer

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.

Source Files

symbolizer.go

Version
v0.0.0-20250607225305-033d6d78b36a (latest)
Published
Jun 7, 2025
Platform
js/wasm
Imports
11 packages
Last checked
10 months ago

Tools for package owners.