profile

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package profile is for profilers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func Name

func Name(n string) Option

Name of the profile

type Options

type Options struct {
	// Name to use for the profile
	Name string
}

type Profile

type Profile interface {
	// Start the profiler
	Start() error
	// Stop the profiler
	Stop() error
	// Name of the profiler
	String() string
}
var (
	DefaultProfile Profile = new(noop)
)

Directories

Path Synopsis
Package http enables the http profiler
Package http enables the http profiler
Package pprof provides a pprof profiler
Package pprof provides a pprof profiler

Jump to

Keyboard shortcuts

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