Documentation ¶
Index ¶
- func CPUProfile(ctx context.Context, sec int) ([]byte, map[string]string, error)
- func Cmdline() ([]byte, map[string]string, error)
- func IsErrProfileNotFound(err error) bool
- func NewErrProfileNotFound(profile string) error
- func Profile(profile string, debug, gc int) ([]byte, map[string]string, error)
- func Trace(ctx context.Context, sec int) ([]byte, map[string]string, error)
- type ReqType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUProfile ¶
CPUProfile generates a CPU Profile for a given duration
func Cmdline ¶
Cmdline responds with the running program's command line, with arguments separated by NUL bytes.
func IsErrProfileNotFound ¶
IsErrProfileNotFound returns whether the error is due to a pprof profile being invalid
func NewErrProfileNotFound ¶
NewErrProfileNotFound returns a new error caused by a pprof.Lookup profile not being found
Types ¶
Click to show internal directories.
Click to hide internal directories.