agent

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileSession

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

func NewSession

func NewSession(c SessionConfig) (*ProfileSession, error)

func NewSessionWithSpyFactory added in v0.26.0

func NewSessionWithSpyFactory(c SessionConfig, spyFactory SpyFactory) (*ProfileSession, error)

func (*ProfileSession) ChangeName added in v0.0.38

func (ps *ProfileSession) ChangeName(newName string) error

func (*ProfileSession) RemoveTags added in v0.2.1

func (ps *ProfileSession) RemoveTags(keys ...string) error

RemoveTags - remove tags from the session.

func (*ProfileSession) SetTag added in v0.0.38

func (ps *ProfileSession) SetTag(key, val string) error

SetTag - add a new tag to the session.

func (*ProfileSession) SetTags added in v0.2.1

func (ps *ProfileSession) SetTags(tags map[string]string) error

SetTags - add new tags to the session.

func (*ProfileSession) Start

func (ps *ProfileSession) Start() error

func (*ProfileSession) Stop

func (ps *ProfileSession) Stop()

type SessionConfig added in v0.0.30

type SessionConfig struct {
	upstream.Upstream
	logger2.Logger
	AppName          string
	Tags             map[string]string
	ProfilingTypes   []spy.ProfileType
	DisableGCRuns    bool
	SpyName          string
	SampleRate       uint32
	UploadRate       time.Duration
	Pid              int
	WithSubprocesses bool
	ClibIntegration  bool
}

type SpyFactory added in v0.26.0

type SpyFactory func(pid int) ([]spy.Spy, error)

func NewGenericSpyFactory added in v0.26.0

func NewGenericSpyFactory(c SessionConfig) SpyFactory

Directories

Path Synopsis
sd
Package pprof writes runtime profiling data in the format expected by the pprof visualization tool.
Package pprof writes runtime profiling data in the format expected by the pprof visualization tool.
Package profiler is a public API golang apps should use to send data to pyroscope server.
Package profiler is a public API golang apps should use to send data to pyroscope server.
Package spy contains an interface (Spy) and functionality to register new spies
Package spy contains an interface (Spy) and functionality to register new spies

Jump to

Keyboard shortcuts

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