diagnostics

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

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

Profile represents the cpu or memory profile sampled at regular intervals

func NewProfile

func NewProfile(name string, n, d uint, start bool) Profile

NewProfile returns a new instance of a Profile

type ProfileSet

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

ProfileSet allows fetching program samples of different types. It could be handful if node user observes problematic situation or any type of inefficiency. In most cases, it will allow a developer to catch a perf issue (Memory, CPU or concurrency inefficiency) at development phase. As support for periodical sample fetching is added, the tool could enable 'continuous profiling' with negligible overhead.

See also func profile.loop() for a few examples of use

func NewProfileSet

func NewProfileSet() ProfileSet

NewProfileSet creates and starts ProfileSet from a set of settings strings

func (ProfileSet) Close

func (ps ProfileSet) Close()

Close the internal quit channel

func (*ProfileSet) Listen

func (ps *ProfileSet) Listen(rpc *rpcbus.RPCBus)

Listen listens rpcbus commands to allow enabling/disabling any profile in runtime (e.g via rpc)

func (*ProfileSet) Spawn

func (ps *ProfileSet) Spawn(p Profile) error

Spawn a ProfileSet from a Profile

Jump to

Keyboard shortcuts

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