util

package
v0.66.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProfilingFlags added in v0.54.0

func AddProfilingFlags(cmd *cobra.Command)

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

func AppName added in v0.9.39

func AppName(name string) string

func HomeDir

func HomeDir() string

func IsURL

func IsURL(str string) bool

func StartProfiling added in v0.54.0

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 added in v0.54.0

func StopProfiling() error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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