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)
| 63 | // specialized visualization formats. If the command specified already |
| 64 | // exists, it is overwritten. |
| 65 | func 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. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…