Go: cmd/vendor/github.com/google/pprof/internal/driver Index | Files

package driver

import "cmd/vendor/github.com/google/pprof/internal/driver"

Package driver implements the core pprof functionality. It can be parameterized with a flag implementation, fetch and symbolize mechanisms.

Index

Package Files

cli.go commands.go driver.go driver_focus.go fetch.go flags.go flamegraph.go interactive.go options.go svg.go tempfile.go webhtml.go webui.go

func AddCommand Uses

func AddCommand(cmd string, format int, post PostProcessor, desc, usage string)

AddCommand adds an additional command to the set of commands accepted by pprof. This enables extensions to add new commands for specialized visualization formats. If the command specified already exists, it is overwritten.

func PProf Uses

func PProf(eo *plugin.Options) error

PProf acquires a profile, and symbolizes it using a profile manager. Then it generates a report formatted according to the options selected through the flags package.

func SetVariableDefault Uses

func SetVariableDefault(variable, value string)

SetVariableDefault sets the default value for a pprof variable. This enables extensions to set their own defaults.

type GoFlags Uses

type GoFlags struct {
    UsageMsgs []string
}

GoFlags implements the plugin.FlagSet interface.

func (*GoFlags) AddExtraUsage Uses

func (f *GoFlags) AddExtraUsage(eu string)

AddExtraUsage implements the plugin.FlagSet interface.

func (*GoFlags) Bool Uses

func (*GoFlags) Bool(o string, d bool, c string) *bool

Bool implements the plugin.FlagSet interface.

func (*GoFlags) BoolVar Uses

func (*GoFlags) BoolVar(b *bool, o string, d bool, c string)

BoolVar implements the plugin.FlagSet interface.

func (*GoFlags) ExtraUsage Uses

func (f *GoFlags) ExtraUsage() string

ExtraUsage implements the plugin.FlagSet interface.

func (*GoFlags) Float64 Uses

func (*GoFlags) Float64(o string, d float64, c string) *float64

Float64 implements the plugin.FlagSet interface.

func (*GoFlags) Float64Var Uses

func (*GoFlags) Float64Var(f *float64, o string, d float64, c string)

Float64Var implements the plugin.FlagSet interface. the value of the flag.

func (*GoFlags) Int Uses

func (*GoFlags) Int(o string, d int, c string) *int

Int implements the plugin.FlagSet interface.

func (*GoFlags) IntVar Uses

func (*GoFlags) IntVar(i *int, o string, d int, c string)

IntVar implements the plugin.FlagSet interface.

func (*GoFlags) Parse Uses

func (*GoFlags) Parse(usage func()) []string

Parse implements the plugin.FlagSet interface.

func (*GoFlags) String Uses

func (*GoFlags) String(o, d, c string) *string

String implements the plugin.FlagSet interface.

func (*GoFlags) StringList Uses

func (*GoFlags) StringList(o, d, c string) *[]*string

StringList implements the plugin.FlagSet interface.

func (*GoFlags) StringVar Uses

func (*GoFlags) StringVar(s *string, o, d, c string)

StringVar implements the plugin.FlagSet interface.

type PostProcessor Uses

type PostProcessor func(input io.Reader, output io.Writer, ui plugin.UI) error

PostProcessor is a function that applies post-processing to the report output

Package driver imports 33 packages (graph). Updated 2019-06-13. Refresh now. Tools for package owners.