MCPcopy Create free account
hub / github.com/google/pprof / AddCommand

Function AddCommand

internal/driver/commands.go:65–67  ·  view source on GitHub ↗

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.

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

Source from the content-addressed store, hash-verified

63// specialized visualization formats. If the command specified already
64// exists, it is overwritten.
65func AddCommand(cmd string, format int, post PostProcessor, desc, usage string) {
66 pprofCommands[cmd] = &command{format, post, nil, false, desc, usage}
67}
68
69// SetVariableDefault sets the default value for a pprof
70// variable. This enables extensions to set their own defaults.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…