debug

package
v0.0.0-...-4fdfd55 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Profile bool
	Host    string
	Port    int
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

type Profiler

type Profiler struct {
	// contains filtered or unexported fields
}

Profiler records runtime profiling data using pprof and makes it available.

func NewProfiler

func NewProfiler(c Config, l log.Logger) *Profiler

NewProfiler returns a new instance of profiler.

func (*Profiler) Start

func (p *Profiler) Start() error

Start listens on the configured port and serves the runtime profiling data over HTTP. This is a blocking method and should be run concurrently.

Jump to

Keyboard shortcuts

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