Versions in this module Expand all Collapse all v0 v0.1.0 Dec 6, 2021 Changes in this version + var ErrCloudTokenRequired = errors.New(...) + var ErrUpgradeServer = errors.New(...) + var ErrUpload = errors.New("Failed to upload a profile") + type Double struct + func (d Double) Bytes() []byte + type Payload interface + Bytes func() []byte + type Remote struct + Logger types.Logger + func NewRemote(cfg RemoteConfig, logger types.Logger) (*Remote, error) + func (r *Remote) Start() + func (r *Remote) Stop() + func (r *Remote) Upload(job *UploadJob) + type RemoteConfig struct + AuthToken string + ManualStart bool + UpstreamAddress string + UpstreamRequestTimeout time.Duration + UpstreamThreads int + type Session struct + func NewSession(c SessionConfig) (*Session, error) + func (ps *Session) Start() error + func (ps *Session) Stop() + type SessionConfig struct + AppName string + DisableGCRuns bool + ProfilingTypes []types.ProfileType + SampleRate uint32 + Tags map[string]string + UploadRate time.Duration + type SetAppNamer interface + SetAppName func(string) + type Single []byte + func (s Single) Bytes() []byte + func (s Single) BytesWithLength() []byte + type UploadFormat string + const Pprof + const Trie + type UploadJob struct + AggregationType string + EndTime time.Time + Format UploadFormat + Name string + PrevProfile []byte + Profile []byte + SampleRate uint32 + SpyName string + StartTime time.Time + Units string + type Upstream interface + Stop func() + Upload func(u *UploadJob)