util

package
v0.89.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProfilingFlags

func AddProfilingFlags(cmd *cobra.Command)

AddProfilingFlags adds the --cpuprofile and --memprofile flags to the given command.

func StartProfiling

func StartProfiling() error

StartProfiling starts profiling CPU and memory usage if either --cpuprofile or --memprofile flags were set and bound to viper configurations respectively.

func StopProfiling

func StopProfiling() error

StopProfiling stops profiling CPU and memory usage and writes the results to the files specified by --cpuprofile and --memprofile flags respectively.

func VersionCmd

func VersionCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL