profiler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProfileWriter

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

func NewFileWriter

func NewFileWriter(dirPath string) *FileProfileWriter

func (*FileProfileWriter) Write

func (fw *FileProfileWriter) Write(ctx context.Context, labels map[string]string, prof *profile.Profile) error

type Option

type Option func(p *Profiler)

func WithDebugInfoUploader

func WithDebugInfoUploader(d *debuginfo.DebugInfo) Option

func WithProfileWriter

func WithProfileWriter(w ProfileWriter) Option

type PID

type PID uint64

type Profile

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

type ProfileWriter

type ProfileWriter interface {
	Write(ctx context.Context, labels map[string]string, prof *profile.Profile) error
}

type Profiler

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

func NewProfiler

func NewProfiler(logger log.Logger, node string, profilingDuration time.Duration, opts ...Option) *Profiler

func (*Profiler) Run

func (p *Profiler) Run(ctx context.Context) error

type RemoteProfileWriter

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

func NewRemoteProfileWriter

func NewRemoteProfileWriter(profileStoreClient profilestorepb.ProfileStoreServiceClient) *RemoteProfileWriter

func (*RemoteProfileWriter) Write

func (rw *RemoteProfileWriter) Write(ctx context.Context, labels map[string]string, prof *profile.Profile) error

Write sends the profile using the designated write client.

Jump to

Keyboard shortcuts

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