package resources
import "github.com/moby/buildkit/executor/resources"
Index ¶
- type Monitor
- func NewMonitor() (*Monitor, error)
- func (m *Monitor) Close() error
- func (m *Monitor) RecordNamespace(ns string, opt RecordOpt) (resourcestypes.Recorder, error)
- type NetworkSampler
- type RecordOpt
- type Sampler
- func NewSampler[T WithTimestamp](minInterval time.Duration, maxSamples int, cb func(time.Time) (T, error)) *Sampler[T]
- func NewSysSampler() (*Sampler[*resourcestypes.SysSample], error)
- func (s *Sampler[T]) Close() error
- func (s *Sampler[T]) Record() *Sub[T]
- type Sub
- type SysSampler
- type WithTimestamp
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitor ¶
func (*Monitor) Close ¶
func (*Monitor) RecordNamespace ¶
type NetworkSampler ¶
type NetworkSampler interface { Sample() (*resourcestypes.NetworkSample, error) }
type RecordOpt ¶
type RecordOpt struct { NetworkSampler NetworkSampler }
type Sampler ¶
type Sampler[T WithTimestamp] struct { // contains filtered or unexported fields }
func NewSampler ¶
func NewSampler[T WithTimestamp](minInterval time.Duration, maxSamples int, cb func(time.Time) (T, error)) *Sampler[T]
func NewSysSampler ¶
func NewSysSampler() (*Sampler[*resourcestypes.SysSample], error)
func (*Sampler[T]) Close ¶
func (*Sampler[T]) Record ¶
type Sub ¶
type Sub[T WithTimestamp] struct { // contains filtered or unexported fields }
func (*Sub[T]) Close ¶
type SysSampler ¶
type SysSampler = Sub[*resourcestypes.SysSample]
type WithTimestamp ¶
Source Files ¶
cpu.go io.go memory.go monitor.go monitor_nolinux.go pids.go sampler.go sys.go sys_nolinux.go
Directories ¶
Path | Synopsis |
---|---|
executor/resources/types |
- Version
- v0.15.2
- Published
- Aug 15, 2024
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 4 minutes ago –
Tools for package owners.