core

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2017 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TickRate        = 1 * time.Millisecond
	MetricsRate     = 1 * time.Second
	CollectRate     = 10 * time.Millisecond
	ThresholdsRate  = 2 * time.Second
	ShutdownTimeout = 10 * time.Second

	BackoffAmount = 50 * time.Millisecond
	BackoffMax    = 10 * time.Second
)

Variables

This section is empty.

Functions

func ProcessStages

func ProcessStages(stages []lib.Stage, t time.Duration) (null.Int, bool)

Returns the VU count and whether to keep going at the specified time.

func SumStages

func SumStages(stages []lib.Stage) (d lib.NullDuration)

Returns the total sum of time taken by the given set of stages.

Types

type Engine

type Engine struct {
	Executor  lib.Executor
	Options   lib.Options
	Collector lib.Collector

	Stages      []lib.Stage
	Metrics     map[string]*stats.Metric
	MetricsLock sync.RWMutex
	// contains filtered or unexported fields
}

The Engine is the beating heart of K6.

func NewEngine

func NewEngine(ex lib.Executor, o lib.Options) (*Engine, error)

func (*Engine) GetLogger

func (e *Engine) GetLogger() *log.Logger

func (*Engine) IsTainted

func (e *Engine) IsTainted() bool

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) error

func (*Engine) SetLogger

func (e *Engine) SetLogger(l *log.Logger)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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