profiler

package
v0.31.14 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the http server that will be serving the /debug/pprof/ request for pprof.

func NewServer

func NewServer(log zerolog.Logger, address string) *Server

NewServer creates a new server that exposes pprof endpoint.

func (*Server) Start

func (s *Server) Start() error

Start registers the pprof and launches the server.

Jump to

Keyboard shortcuts

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