spy

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 ResolveAutoName(s string) string

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 Spy

type Spy interface {
	Stop() error
	Snapshot(cb func([]byte, uint64, error))
}

func SpyFromName

func SpyFromName(name string, pid int) (Spy, error)

Jump to

Keyboard shortcuts

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