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

package report

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

Package report summarizes a performance profile into a human-readable report.


Package Files

report.go source.go source_html.go


const (
    Callgrind = iota

Output formats.

func AddSourceTemplates Uses

func AddSourceTemplates(t *template.Template)

AddSourceTemplates adds templates used by PrintWebList to t.

func Generate Uses

func Generate(w io.Writer, rpt *Report, obj plugin.ObjTool) error

Generate generates a report as directed by the Report.

func GetDOT Uses

func GetDOT(rpt *Report) (*graph.Graph, *graph.DotConfig)

GetDOT returns a graph suitable for dot processing along with some configuration information.

func PrintAssembly Uses

func PrintAssembly(w io.Writer, rpt *Report, obj plugin.ObjTool, maxFuncs int) error

PrintAssembly prints annotated disassembly of rpt to w.

func PrintWebList Uses

func PrintWebList(w io.Writer, rpt *Report, obj plugin.ObjTool, maxFiles int) error

PrintWebList prints annotated source listing of rpt to w.

func ProfileLabels Uses

func ProfileLabels(rpt *Report) []string

ProfileLabels returns printable labels for a profile.

type Options Uses

type Options struct {
    OutputFormat int

    CumSort       bool
    CallTree      bool
    DropNegative  bool
    CompactLabels bool
    Ratio         float64
    Title         string
    ProfileLabels []string
    ActiveFilters []string
    NumLabelUnits map[string]string

    NodeCount    int
    NodeFraction float64
    EdgeFraction float64

    SampleValue       func(s []int64) int64
    SampleMeanDivisor func(s []int64) int64
    SampleType        string
    SampleUnit        string // Unit for the sample data from the profile.

    OutputUnit string // Units for data formatting in report.

    Symbol     *regexp.Regexp // Symbols to include on disassembly report.
    SourcePath string         // Search path for source files.
    TrimPath   string         // Paths to trim from source file paths.

Options are the formatting and filtering options used to generate a profile.

type Report Uses

type Report struct {
    // contains filtered or unexported fields

Report contains the data and associated routines to extract a report from a profile.

func New Uses

func New(prof *profile.Profile, o *Options) *Report

New builds a new report indexing the sample values interpreting the samples with the provided function.

func NewDefault Uses

func NewDefault(prof *profile.Profile, options Options) *Report

NewDefault builds a new report indexing the last sample value available.

func (*Report) Total Uses

func (rpt *Report) Total() int64

Total returns the total number of samples in a report.

type TextItem Uses

type TextItem struct {
    Name                  string
    InlineLabel           string // Not empty if inlined
    Flat, Cum             int64  // Raw values
    FlatFormat, CumFormat string // Formatted values

TextItem holds a single text report entry.

func TextItems Uses

func TextItems(rpt *Report) ([]TextItem, []string)

TextItems returns a list of text items from the report and a list of labels that describe the report.

Package report imports 16 packages (graph). Updated 2020-12-04. Refresh now. Tools for package owners.