package
1.11.26
Repository: https://github.com/hedzr/cmdr.git
Documentation: pkg.go.dev

# Functions

AttachToCmdr attaches the profiling options to root command.
EnableCPUProfile enables cpu profiling.
EnableMemProfile enables memory profiling.
GetCmdrProfilingOptions returns an opt for cmdr.Exec(root, opts...).
Start constructs any profiling sessions from `types`.
WithBlockProfName ..
WithCmdrProfilingOptions returns an opt for cmdr.Exec(root, opts...).
WithCmdrProfilingOptionsHidden hides the commands and flags from help screen.
WithCPUProfName ..
WithGoRoutineProfName ..
WithMemProfileRate enables memory profiling with a special rate.
WithMemProfileType specify the typename of memory profiling, "heap" or "allocs".
WithMemProfName ..
WithMutexProfName ..
WithOutputDirectory specify a directory for writing profiles.
WithThreadCreateProfName ..
WithTraceProfName ..
WithTypes allows a list of ProfType specified.

# Constants

BlockProf represents block profiling.
CPUProf represents cpu profiling.
DefaultMemProfileRate is the default memory profiling rate.
GoRoutineProf represents go-routine profiling.
MemProf represents memory profiling.
MutexProf represents mutex profiling.
ThreadCreateProf represents thread creation profiling.
TraceProf represents trace profiling.

# Type aliases

ProfOpt provides a wrapped functional options type for Start(...).
ProfType represents the profile type.