pprof

package
v0.0.0-...-5fbb372 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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