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
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`.
Click to show internal directories.
Click to hide internal directories.