schedule

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OldTotal float64 = 0.0
	OldIdle  float64 = 0.0
)

Functions

func CPUInfo

func CPUInfo(oldTotal, oldIdle float64) (float64, float64, float64, error)

func CloseDataStorage

func CloseDataStorage()

func InitDataStorage

func InitDataStorage(cfg config.Config)

func MemoryInfo

func MemoryInfo() (float64, error)

func NodeCPURawDataStorage

func NodeCPURawDataStorage() storage.StorageInterface

func NodeCPUSecondsSchedule

func NodeCPUSecondsSchedule() *sched.Scheduler

func NodeMemoryDataStorage

func NodeMemoryDataStorage() storage.StorageInterface

func NodeMemorySecondsSchedule

func NodeMemorySecondsSchedule() *sched.Scheduler

func StartCPU

func StartCPU(cfg config.Config)

func StartMemory

func StartMemory(cfg config.Config)

func StorageCPUPoint

func StorageCPUPoint()

func StorageMemoryPoint

func StorageMemoryPoint()

Types

type Item

type Item struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL