package commands
import "cmd/pprof/internal/commands"
Package commands defines and manages the basic pprof commands
Index ¶
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 Commands ¶
Commands describes the commands accepted by pprof.
func PProf ¶
PProf returns the basic pprof report-generation commands
type Completer ¶
Completer is a function for command-line autocompletion
func NewCompleter ¶
NewCompleter creates an autocompletion function for a set of commands.
type PostProcessor ¶
PostProcessor is a function that applies post-processing to the report output
Source Files ¶
- Version
- v1.4.0
- Published
- Dec 11, 2014
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 1 minute ago –
Tools for package owners.