profile

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileStore

func NewFileStore() (fileStore, error)

func NewS3Store

func NewS3Store(bucket string) (s3Store, error)

func StartProfiling

func StartProfiling(cfg *profile.Config, output Output, name, id string) error

StartProfiling will start up profiling with the given config

func StopProfiling

func StopProfiling() (string, string, string, error)

StopProfiling will stop profiling

Types

type Output

type Output int
const (
	S3Output Output = iota
	FileOutput
)

type RunningProfile

type RunningProfile struct {
	sync.Mutex
	Prof interface {
		Stop()
	}
	Store       Store
	Buf         *bufferCloser
	ProfileType string
	Running     bool
	Id          string
	Name        string
	Bucket      string
}

type Store

type Store interface {
	Save(id string, reader io.Reader, contentType string) (path string, err error)
}

Jump to

Keyboard shortcuts

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