Documentation ¶
Overview ¶
Package spy contains an interface (Spy) and functionality to register new spies
Index ¶
Constants ¶
View Source
const ( ProfileCPU ProfileType = "cpu" ProfileInuseObjects ProfileType = "inuse_objects" ProfileAllocObjects ProfileType = "alloc_objects" ProfileInuseSpace ProfileType = "inuse_space" ProfileAllocSpace ProfileType = "alloc_space" Go = "gospy" Python = "pyspy" Ruby = "rbspy" )
Variables ¶
View Source
var (
SupportedSpies []string
)
Functions ¶
func RegisterSpy ¶
func RegisterSpy(name string, cb SpyIntitializer)
func ResolveAutoName ¶
func SupportedExecSpies ¶ added in v0.0.16
func SupportedExecSpies() []string
Types ¶
type ProfileType ¶ added in v0.0.30
type ProfileType string
func (ProfileType) AggregationType ¶ added in v0.0.30
func (t ProfileType) AggregationType() string
func (ProfileType) IsCumulative ¶ added in v0.0.30
func (t ProfileType) IsCumulative() bool
func (ProfileType) Units ¶ added in v0.0.30
func (t ProfileType) Units() string
type Resettable ¶ added in v0.0.25
type Resettable interface {
Reset()
}
type SpyIntitializer ¶ added in v0.2.0
type SpyIntitializer func(pid int, profileType ProfileType, sampleRate uint32, disableGCRuns bool) (Spy, error)
TODO: this interface is not the best as different spies have different arguments
func StartFunc ¶ added in v0.0.38
func StartFunc(name string) (SpyIntitializer, error)
Click to show internal directories.
Click to hide internal directories.