Documentation
¶
Overview ¶
Package report summarizes a performance profile into a human-readable report.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDOT ¶
GetDOT returns a graph suitable for dot processing along with some configuration information.
func ProfileLabels ¶
ProfileLabels returns printable labels for a profile.
Types ¶
type Options ¶
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.
IntelSyntax bool // Whether to print assembly in Intel syntax.
}
Options are the formatting and filtering options used to generate a profile.
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report contains the data and associated routines to extract a report from a profile.
func New ¶
New builds a new report indexing the sample values interpreting the samples with the provided function.
func NewDefault ¶
NewDefault builds a new report indexing the last sample value available.
Click to show internal directories.
Click to hide internal directories.