xcmd

package
v0.0.0-...-32dc681 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockInitFlags

func MockInitFlags(cmd *cobra.Command, addr string)

MockInitFlags mocks init flags.

func NewCleanupCommand

func NewCleanupCommand() *cobra.Command

NewCleanupCommand creates the new cmd.

func NewPrepareCommand

func NewPrepareCommand() *cobra.Command

NewPrepareCommand creates the new cmd.

func NewRandomCommand

func NewRandomCommand() *cobra.Command

NewRandomCommand creates the new cmd.

func NewRangeCommand

func NewRangeCommand() *cobra.Command

NewRangeCommand creates the new cmd.

func NewSeqCommand

func NewSeqCommand() *cobra.Command

NewSeqCommand creates the new cmd.

Types

type Monitor

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

Monitor tuple.

func NewMonitor

func NewMonitor(conf *xcommon.Conf, workers []xworker.Worker) *Monitor

NewMonitor creates the new monitor.

func (*Monitor) Start

func (m *Monitor) Start()

Start used to start the monitor.

func (*Monitor) Stop

func (m *Monitor) Stop()

Stop used to stop the monitor.

type Stats

type Stats struct {
	SystemCS uint64
	IdleCPU  uint64
	MemFree  uint64
	MemCache uint64
	SwapSi   uint64
	SwapSo   uint64
	RRQM_S   float64
	WRQM_S   float64
	RS       float64
	WS       float64
	RKB_S    float64
	WKB_S    float64
	AWAIT    float64
	UTIL     float64
}

Stats tuple.

Jump to

Keyboard shortcuts

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