#include <hebench_config.h>
|
static std::shared_ptr< BenchmarkConfigLoader > | create (const std::string &yaml_filename, std::uint64_t fallback_random_seed) |
| Loads a benchmark configuration from yaml data contained in a file. More...
|
|
Definition at line 42 of file hebench_config.h.
◆ BenchmarkConfigLoader() [1/2]
◆ BenchmarkConfigLoader() [2/2]
◆ create()
std::shared_ptr< BenchmarkConfigLoader > hebench::Utilities::BenchmarkConfigLoader::create |
( |
const std::string & |
yaml_filename, |
|
|
std::uint64_t |
fallback_random_seed |
|
) |
| |
|
static |
Loads a benchmark configuration from yaml data contained in a file.
- Parameters
-
[in] | yaml_filename | File name containing the configuration data in yaml format. |
- Exceptions
-
Instance | of std::exception on error. |
- Returns
- Pointer to created
BenchmarkConfigLoader
with valid loaded configuration data to be used by a BenchmarkConfigBroker
to parse and generate a configuration for benchmark session.
Definition at line 480 of file hebench_config.cpp.
◆ getDefaultMinTestTimeMs()
std::uint64_t hebench::Utilities::BenchmarkConfigLoader::getDefaultMinTestTimeMs |
( |
| ) |
const |
|
inline |
◆ getDefaultSampleSize()
std::uint64_t hebench::Utilities::BenchmarkConfigLoader::getDefaultSampleSize |
( |
| ) |
const |
|
inline |
◆ getFilename()
const std::string& hebench::Utilities::BenchmarkConfigLoader::getFilename |
( |
| ) |
const |
|
inline |
Retrieves the file name used to load the yaml data.
Definition at line 76 of file hebench_config.h.
◆ getInitData()
const std::vector<std::int8_t>& hebench::Utilities::BenchmarkConfigLoader::getInitData |
( |
| ) |
const |
|
inline |
◆ getRandomSeed()
std::uint64_t hebench::Utilities::BenchmarkConfigLoader::getRandomSeed |
( |
| ) |
const |
|
inline |
Retrieves the configuration random seed.
- Returns
- The random seed to be used for this configuration as loaded from the configuration file, or a system clock pre-generated seed if none was specified in the configuration file.
Definition at line 84 of file hebench_config.h.
◆ getYAMLContent()
const void* hebench::Utilities::BenchmarkConfigLoader::getYAMLContent |
( |
const FriendKey & |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: