Documentation
¶
Index ¶
- func Execute(spec *api.BenchmarkSpec, ctx *api.ExecutionContext) api.Summary
- func LoadSpec(path string) (*api.BenchmarkSpec, error)
- func NewCommandExecutor(pipeStdout bool, pipeStderr bool) api.CommandExecutor
- func NewSummary(tracesByID map[api.ID][]api.Trace) api.Summary
- func NewTracer() api.Tracer
- type CmdRecordingExecutor
- type RecordedExecutionParams
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 ¶
NewSummary create a new TracerSummary with the specified data.
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 ...
Click to show internal directories.
Click to hide internal directories.