Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + const DefaultBlockRate + const DefaultDuration + const DefaultMutexFraction + const DefaultPeriod + const DefaultUploadTimeout + func PprofDiff(a, b *pprofile.Profile) (*pprofile.Profile, error) + func Start(opts ...Option) error + func Stop() + type Option func(*config) + func BlockProfileRate(rate int) Option + func CPUDuration(d time.Duration) Option + func CPUProfileRate(hz int) Option + func MutexProfileFraction(rate int) Option + func WithAPIKey(key string) Option + func WithAgentAddr(hostport string) Option + func WithAgentlessUpload() Option + func WithDeltaProfiles(enabled bool) Option + func WithEnv(env string) Option + func WithHTTPClient(client *http.Client) Option + func WithHostname(hostname string) Option + func WithLogStartup(enabled bool) Option + func WithPeriod(d time.Duration) Option + func WithProfileTypes(types ...ProfileType) Option + func WithService(name string) Option + func WithSite(site string) Option + func WithStatsd(client StatsdClient) Option + func WithTags(tags ...string) Option + func WithUDS(socketPath string) Option + func WithURL(url string) Option + func WithUploadTimeout(d time.Duration) Option + func WithVersion(version string) Option + type ProfileType int + const BlockProfile + const CPUProfile + const GoroutineProfile + const HeapProfile + const MetricsProfile + const MutexProfile + func (t ProfileType) Filename() string + func (t ProfileType) String() string + func (t ProfileType) Tag() string + type StatsdClient interface + Count func(event string, times int64, tags []string, rate float64) error + Timing func(event string, duration time.Duration, tags []string, rate float64) error