Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProfileTypes = []ProfileType{ ProfileCPU, ProfileAllocObjects, ProfileAllocSpace, ProfileInuseObjects, ProfileInuseSpace, }
View Source
var Labels = pprof.Labels
View Source
var StandardLogger = &standardLoggerImpl{}
Functions ¶
Types ¶
type Config ¶
type Config struct { ApplicationName string // e.g backend.purchases Tags map[string]string ServerAddress string // e.g http://pyroscope.services.internal:4040 AuthToken string // specify this token when using pyroscope cloud SampleRate uint32 Logger Logger ProfileTypes []ProfileType DisableGCRuns bool // this will disable automatic runtime.GC runs between getting the heap profiles }
type Logger ¶ added in v0.2.0
type Logger interface { Infof(_ string, _ ...interface{}) Debugf(_ string, _ ...interface{}) Errorf(_ string, _ ...interface{}) }
Logger is an interface that library users can use It is based on logrus, but much smaller — That's because we don't want library users to have to implement all of the logrus's methods
type ProfileType ¶ added in v0.2.0
type ProfileType string
const ( ProfileCPU ProfileType = "cpu" ProfileInuseObjects ProfileType = "inuse_objects" ProfileAllocObjects ProfileType = "alloc_objects" ProfileInuseSpace ProfileType = "inuse_space" ProfileAllocSpace ProfileType = "alloc_space" DefaultSampleRate = 100 )
Click to show internal directories.
Click to hide internal directories.