profile

package
v0.0.0-...-693f2a7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.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 Profiler

type Profiler interface {
	Finish()
}

func Start

func Start(log *zap.Logger, cpuProfilePath, memProfilePath string) Profiler

Start starts profiling and returns a Profiler that must be finished with Finish() (usually via defer) to write the profiles. If both paths are empty, Start() and Finish() are no-ops.

type Server

type Server interface {
	Listen()
	Close()
}

func NewServer

func NewServer(addr string, log *zap.Logger) Server

NewServer creates a new pprof server

Jump to

Keyboard shortcuts

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