Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CobraProfiler ¶
type CobraProfiler struct {
// contains filtered or unexported fields
}
CobraProfiler encapsulates profiling state and flag management for Cobra apps.
func NewCobraProfiler ¶
func NewCobraProfiler() *CobraProfiler
NewCobraProfiler creates a new profiler for Cobra integration.
func (*CobraProfiler) AddFlags ¶
func (p *CobraProfiler) AddFlags(cmd *cobra.Command)
AddFlags adds the profiling flags to the given Cobra command.
Click to show internal directories.
Click to hide internal directories.