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
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) 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