pprof

package
v0.0.0-...-03c5838 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MonitorPprof = "monitor/pprof"

Variables

This section is empty.

Functions

func SetPprofConfig

func SetPprofConfig(conf *config.Config, pprofCfg *PprofConfig)

Types

type Pprof

type Pprof struct {
	Config *PprofConfig
}

func (*Pprof) StartProfiling

func (p *Pprof) StartProfiling()

StartProfiling try start pprof

func (*Pprof) StopProfiling

func (p *Pprof) StopProfiling()

StopProfiling try stop pprof

type PprofConfig

type PprofConfig struct {
	HttpListen string `yaml:"http_listen"`
	Cpuprofile string `yaml:"cpuprofile"`
	Memprofile string `yaml:"memprofile"`
}

func GetPprofConfig

func GetPprofConfig(conf *config.Config) *PprofConfig

Jump to

Keyboard shortcuts

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