profd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnableStartupProfiling = false
	DefaultStartupProfilingSec    = 300
	DefaultStartupProfilingMode   = "mem"
	DefaultProfilingOutputDir     = "/tmp"
	DefaultEnableGoPs             = false
	DefaultGoPsAddr               = ":"
	DefaultEnableHTTPPprof        = false
	DefaultEnableStatsViz         = false
)
View Source
const DaemonTypeProfd boot.DaemonType = "profd"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	EnableStartupProfiling bool   `` /* 151-byte string literal not displayed */
	StartupProfilingSec    int    `` /* 226-byte string literal not displayed */
	StartupProfilingMode   string `` /* 211-byte string literal not displayed */
	ProfilingOutputDir     string `` /* 161-byte string literal not displayed */

	EnableHTTPPprof bool `` /* 140-byte string literal not displayed */

	EnableGoPs bool   `yaml:"enableGoPs" env:"PROF_ENABLE_GOPS" flag-long:"prof-enable-gops" flag-description:"enable gops agent"`
	GoPsAddr   string `yaml:"goPsAddr"   env:"PROF_GOPS_ADDR"   flag-long:"prof-gops-addr"   flag-description:"gops agent listen addr"`

	EnableStatsViz bool `` /* 130-byte string literal not displayed */
}

func NewCfg

func NewCfg() *Cfg

type Profd

type Profd struct {
	runner.Runner
	*Cfg
}

func New

func New() *Profd

func (*Profd) GetCfg

func (p *Profd) GetCfg() interface{}

func (*Profd) Init

func (p *Profd) Init() error

func (*Profd) Stop

func (p *Profd) Stop() error

func (*Profd) Type

func (p *Profd) Type() interface{}

Jump to

Keyboard shortcuts

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