package telemetry
import "github.com/edgexfoundry/device-sdk-go/internal/telemetry"
Index ¶
- func AvgCpuUsage(init, final CpuUsage) (avg float64)
- func StartCpuUsageAverage(appWg *sync.WaitGroup, appCtx context.Context, logger logger.LoggingClient)
- type CpuUsage
- type SystemUsage
Functions ¶
func AvgCpuUsage ¶
func StartCpuUsageAverage ¶
func StartCpuUsageAverage(appWg *sync.WaitGroup, appCtx context.Context, logger logger.LoggingClient)
Types ¶
type CpuUsage ¶
type CpuUsage struct { Busy, Idle, Total uint64 // reported sum total of all usage }
func PollCpu ¶
func PollCpu() (cpuSnapshot CpuUsage)
type SystemUsage ¶
type SystemUsage struct { Memory memoryUsage CpuBusyAvg float64 }
SystemUsage swagger:model
func NewSystemUsage ¶
func NewSystemUsage() (s SystemUsage)
Source Files ¶
- Version
- v1.4.0 (latest)
- Published
- Dec 21, 2020
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 days ago –
Tools for package owners.