profd

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnableStartupProfiling = false
	DefaultStartupProfilingSec    = 300
	DefaultStartupProfilingMode   = "mem"
	DefaultProfilingOutputDir     = "/tmp"
	DefaultEnableGoPs             = false
	DefaultGoPsAddr               = ":"
	DefaultEnableHTTPProf         = false
	DefaultEnableWebProf          = 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 */
	ProfOutputDir          string `` /* 161-byte string literal not displayed */

	EnableHTTPProf bool `` /* 142-byte string literal not displayed */
	EnableWebProf  bool `` /* 141-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 interface {
	runner.Runner
}
var D Profd = New()

func New

func New() Profd

Jump to

Keyboard shortcuts

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