mtbf

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package mtbf implements a library used for MTBF testing.

Package mtbf implements a library used for MTBF testing.

Index

Constants

View Source
const (
	// AccountPool is runtime variable name for credentials to log into a Chrome user session.
	AccountPool = "mtbf.accountPool"

	// LoginReuseFixture is a fixture name that will be registered to tast.
	LoginReuseFixture = "mtbfLoginReuseCleanTabs"

	// ArcLoginReuseFixture is a fixture name that will be registered to tast.
	ArcLoginReuseFixture = "mtbfArcLoginResueCleanTabs"
)

Variables

This section is empty.

Functions

func ARCLoginReuseOptions

func ARCLoginReuseOptions(accountPool string) []chrome.Option

ARCLoginReuseOptions returns the login option for MTBF ARC++ tests.

func LoginReuseOptions

func LoginReuseOptions(accountPool string) []chrome.Option

LoginReuseOptions returns the login option for MTBF tests.

Types

type Recorder

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

Recorder is a utility to measure various metrics for CUJ-style tests.

func NewRecorder

func NewRecorder(ctx context.Context) (*Recorder, error)

NewRecorder creates a Recorder with CPU, Memory and Thermal timeline then starts recording it.

func (*Recorder) Record

func (r *Recorder) Record(ctx context.Context, outDir string) error

Record stops the timeline recording and creates the reporting values from the currently stored data points then saves the results "results-chart.json" to the outDir.

Jump to

Keyboard shortcuts

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