Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProfilerEnabled ¶
func SetProfilerEnabled(newState bool)
SetProfilerEnabled enable or disable generating profiler data
Types ¶
type AutoProfiler ¶
type AutoProfiler struct {
// contains filtered or unexported fields
}
func New ¶
func New(log zerolog.Logger, uploader Uploader, dir string, interval time.Duration, duration time.Duration, enabled bool) (*AutoProfiler, error)
New creates a new AutoProfiler instance performing profiling every interval for duration.
func (*AutoProfiler) Done ¶
func (p *AutoProfiler) Done() <-chan struct{}
func (*AutoProfiler) Ready ¶
func (p *AutoProfiler) Ready() <-chan struct{}
type NoopUploader ¶ added in v0.27.1
type NoopUploader struct{}
func (*NoopUploader) Upload ¶ added in v0.27.1
func (u *NoopUploader) Upload(ctx context.Context, filename string, pt pb.ProfileType) error
type Uploader ¶ added in v0.27.1
func NewUploader ¶ added in v0.27.1
type UploaderImpl ¶ added in v0.27.1
type UploaderImpl struct { ProjectId string Deployment *pb.Deployment // contains filtered or unexported fields }
func (*UploaderImpl) Upload ¶ added in v0.27.1
func (u *UploaderImpl) Upload(ctx context.Context, filename string, pt pb.ProfileType) error
Click to show internal directories.
Click to hide internal directories.