Documentation ¶
Overview ¶
Package commands defines and manages the basic pprof commands
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { Complete Completer // autocomplete for interactive mode Format int // report format to generate PostProcess PostProcessor // postprocessing to run on report HasParam bool // Collect a parameter from the CLI Usage string // Help text }
Command describes the actions for a pprof command. Includes a function for command-line completion, the report format to use during report generation, any postprocessing functions, and whether the command expects a regexp parameter (typically a function name).
type Completer ¶
Completer is a function for command-line autocompletion
func NewCompleter ¶
NewCompleter creates an autocompletion function for a set of commands.
Click to show internal directories.
Click to hide internal directories.