profd

package
v0.1.54 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

	EnableHTTPProf       bool   `yaml:"enableHTTPProf" env:"ENABLE_HTTP_PROF" long:"enable-http-prof" description:"enable prof over http, depends on httpd"`
	EnableWebProf        bool   `yaml:"enableWebProf"  env:"ENABLE_WEB_PROF"  long:"enable-web-prof"  description:"enable prof over web, depends on httpd"`
	EnableWebPrettyTrace bool   `` /* 149-byte string literal not displayed */
	WebAuthUser          string `yaml:"webAuthUser" env:"WEB_AUTH_USER"`
	WebAuthPwd           string `yaml:"webAuthPwd" env:"WEB_AUTH_PWD"`

	EnableGoPs bool   `yaml:"enableGoPs" env:"ENABLE_GOPS" long:"enable-gops" =description:"enable gops agent"`
	GoPsAddr   string `yaml:"goPsAddr"   env:"GOPS_ADDR"   long:"gops-addr"   =description:"gops agent listen addr"`

	EnableStatsViz bool `yaml:"enableStatsViz" env:"ENABLE_STATS_VIZ" long:"enable-stats-viz" description:"enable statsviz, need httpd"`
}

func NewCfg

func NewCfg() *Cfg

type Profd

type Profd interface {
	boot.Daemon
	SetMux(*http.ServeMux)
	SetAllowedIPsGetter(func() map[string]struct{})
}
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