HEBench
hebench::Utilities::BenchmarkConfigBroker Class Reference

Provides facilities to configure the selection of benchmarks to run based on the supported workloads from a loaded backend. More...

#include <hebench_config.h>

Public Member Functions

 BenchmarkConfigBroker (std::weak_ptr< hebench::TestHarness::Engine > wp_engine, std::uint64_t random_seed=0, const std::string s_backend=std::string())
 
void exportConfiguration (const std::string &yaml_filename, const BenchmarkSession &bench_configs) const
 
BenchmarkSession importConfiguration (const BenchmarkConfigLoader &loader) const
 Imports a benchmark configuration from a configurator loader. More...
 
const BenchmarkSessiongetDefaultConfiguration () const
 

Detailed Description

Provides facilities to configure the selection of benchmarks to run based on the supported workloads from a loaded backend.

Definition at line 103 of file hebench_config.h.

Constructor & Destructor Documentation

◆ BenchmarkConfigBroker()

hebench::Utilities::BenchmarkConfigBroker::BenchmarkConfigBroker ( std::weak_ptr< hebench::TestHarness::Engine wp_engine,
std::uint64_t  random_seed = 0,
const std::string  s_backend = std::string() 
)

Definition at line 555 of file hebench_config.cpp.

Member Function Documentation

◆ exportConfiguration()

void hebench::Utilities::BenchmarkConfigBroker::exportConfiguration ( const std::string &  yaml_filename,
const BenchmarkSession bench_configs 
) const

Definition at line 590 of file hebench_config.cpp.

◆ getDefaultConfiguration()

const BenchmarkSession& hebench::Utilities::BenchmarkConfigBroker::getDefaultConfiguration ( ) const
inline

Definition at line 122 of file hebench_config.h.

◆ importConfiguration()

BenchmarkSession hebench::Utilities::BenchmarkConfigBroker::importConfiguration ( const BenchmarkConfigLoader loader) const

Imports a benchmark configuration from a configurator loader.

Parameters
[in]loaderA BenchmarkConfigLoader initialized with the yaml information from the desired configuration file.
Returns
The benchmark session listing all the benchmarks to run.

Definition at line 739 of file hebench_config.cpp.


The documentation for this class was generated from the following files: