Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPUSampler ¶
type CPUSampler interface {
GetCPUUsageFraction() float64
Shutdown()
}
type SamplerImpl ¶
type SamplerImpl struct {
// contains filtered or unexported fields
}
func NewCPUSampler ¶
func NewCPUSampler(lg logger.Logger, period time.Duration) *SamplerImpl
func (*SamplerImpl) GetCPUUsageFraction ¶
func (s *SamplerImpl) GetCPUUsageFraction() (fraction float64)
func (*SamplerImpl) Shutdown ¶
func (s *SamplerImpl) Shutdown()
Click to show internal directories.
Click to hide internal directories.