agentutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CollectorAddr string
	Service       string
	Labels        profile.Labels `json:",omitempty"`

	TickInterval time.Duration `json:",omitempty"`

	CPUProfile            time.Duration `json:",omitempty"`
	HeapProfile           bool          `json:",omitempty"`
	BlockProfile          bool          `json:",omitempty"`
	MutexProfile          bool          `json:",omitempty"`
	GoroutineProfile      bool          `json:",omitempty"`
	ThreadcreationProfile bool          `json:",omitempty"`
}

func (*Config) RegisterFlags

func (conf *Config) RegisterFlags(f *flag.FlagSet)

func (*Config) Start

func (conf *Config) Start(ctx context.Context, logger *log.Logger) error

Jump to

Keyboard shortcuts

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