miniacc::State Class Reference

Overview

Per-case context handed to a benchmark: its arguments, the run settings, and the sample sink.

Definition at line 145 of file miniacc.hh.

#include <batchlas/util/miniacc.hh>

Constructors

◆ State()

miniacc::State::State ( std::vector< double > args,
Config cfg,
double target_log10_cond,
std::string benchmark_name )
inline

Definition at line 147 of file miniacc.hh.

Functions

◆ arg()

double miniacc::State::arg ( size_t idx) const
inline

Definition at line 156 of file miniacc.hh.

◆ arg_int()

int miniacc::State::arg_int ( size_t idx) const
inline

Definition at line 160 of file miniacc.hh.

◆ samples()

size_t miniacc::State::samples ( ) const
inline

Definition at line 164 of file miniacc.hh.

◆ seed()

unsigned int miniacc::State::seed ( ) const
inline

Definition at line 165 of file miniacc.hh.

◆ target_log10_cond()

double miniacc::State::target_log10_cond ( ) const
inline

Definition at line 166 of file miniacc.hh.

◆ benchmark_name()

const std::string & miniacc::State::benchmark_name ( ) const
inline

Definition at line 167 of file miniacc.hh.

◆ SetTag()

void miniacc::State::SetTag ( const std::string & key,
const std::string & value )
inline

Definition at line 169 of file miniacc.hh.

◆ RecordSample()

void miniacc::State::RecordSample ( const std::unordered_map< std::string, double > & metrics,
bool ok = true,
const std::string & failure_reason = "",
int info_code = 0,
const std::unordered_map< std::string, std::string > & tags = {} )
inline

Definition at line 173 of file miniacc.hh.

◆ rows()

const std::vector< SampleRow > & miniacc::State::rows ( ) const
inline

Definition at line 191 of file miniacc.hh.