profile

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfilingService added in v1.3.0

type ProfilingService interface {
	Start()
	Stop()
}

ProfilingService is the interface to this class' functionality.

func New

func New(profileType string) (ProfilingService, error)

New returns a new performance profile of the specified type.

func NewWithOptions added in v1.3.0

func NewWithOptions(
	profileType string,
	startProfilingFunc StartProfilingFunc,
) (ProfilingService, error)

NewWithOptions returns a new performance profile of the specified type with the ability to pass in the implementing profile interface..

type StartProfilingFunc added in v1.3.0

type StartProfilingFunc func(...func(*profile.Profile)) interface{ Stop() }

StartProfilingFunc is a function that will be invoked when profile start is requested. This method signature is just a type wrapper around the `Start()` signature from `github.com/pkg/profile`.

Jump to

Keyboard shortcuts

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