profiling

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeCPU    = "CPU"
	TypeMemory = "Memory"
	TypeOther  = "Other"

	SpyEbpf  Spy = "ebpfspy"
	SpyAgent Spy = "coroot-node-agent"

	ViewSingle View = "single"
	ViewDiff   View = "diff"

	PyroscopeSelfProfilingApp = "pyroscope.server"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

func (Metadata) GetApplications

func (md Metadata) GetApplications() map[string][]*ProfileMeta

type ProfileMeta

type ProfileMeta struct {
	Type  Type   `json:"type"`
	Name  string `json:"name"`
	Query string `json:"query"`
	Spy   Spy    `json:"spy"`
}

type PyroscopeClient

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

func NewPyroscopeClient

func NewPyroscopeClient(config PyroscopeClientConfig) (*PyroscopeClient, error)

func (*PyroscopeClient) Diff

func (c *PyroscopeClient) Diff(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)

func (*PyroscopeClient) Metadata

func (c *PyroscopeClient) Metadata(ctx context.Context) (Metadata, error)

func (*PyroscopeClient) Profile

func (c *PyroscopeClient) Profile(ctx context.Context, view View, query string, from, to timeseries.Time) (*Profile, error)

func (*PyroscopeClient) Single

func (c *PyroscopeClient) Single(ctx context.Context, query string, from, to timeseries.Time) (*Profile, error)

type PyroscopeClientConfig

type PyroscopeClientConfig struct {
	Url           string
	TlsSkipVerify bool
	ApiKey        string
	BasicAuth     *utils.BasicAuth
	CustomHeaders []utils.Header
	Transport     *http.Transport
}

func NewPyroscopeClientConfig

func NewPyroscopeClientConfig(url string) PyroscopeClientConfig

type Spy

type Spy string

type Type

type Type string

type View

type View string

Jump to

Keyboard shortcuts

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