pkg

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(spec *api.BenchmarkSpec, ctx *api.ExecutionContext) api.Summary

Execute executes a benchmark and returns an object that provides access to collected stats.

func LoadSpec

func LoadSpec(path string) (*api.BenchmarkSpec, error)

LoadSpec loads benchmark specs from the specified file.

func NewCommandExecutor

func NewCommandExecutor(pipeStdout bool, pipeStderr bool) api.CommandExecutor

NewCommandExecutor creates a new command executor.

func NewSummary

func NewSummary(tracesByID map[api.ID][]api.Trace) api.Summary

NewSummary create a new TracerSummary with the specified data.

func NewTracer

func NewTracer() api.Tracer

NewTracer creates a new tracer

Types

type CmdRecordingExecutor

type CmdRecordingExecutor struct {
	RecordedCommandSeq []*RecordedExecutionParams
}

CmdRecordingExecutor ...

func (*CmdRecordingExecutor) Execute

func (ce *CmdRecordingExecutor) Execute(
	cmdSpec *api.CommandSpec,
	defaultWorkingDir string,
	env map[string]string,
) (exitError error)

Execute records execution parameters and stores them in order

type RecordedExecutionParams

type RecordedExecutionParams struct {
	Spec              *api.CommandSpec
	DefaultWorkingDir string
	Env               map[string]string
}

RecordedExecutionParams ...

Jump to

Keyboard shortcuts

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