![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#include <bench/bench.h>#include <test/util/setup_common.h>#include <util/check.h>#include <util/fs.h>#include <chrono>#include <compare>#include <fstream>#include <functional>#include <iostream>#include <regex>#include <string>#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | benchmark |
Variables | |
| const std::function< void(const std::string &)> | G_TEST_LOG_FUN {} |
| This is connected to the logger. More... | |
| static std::function< std::vector< const char * >()> | g_bench_command_line_args {} |
| Retrieves the available test setup command line arguments that may be used in the benchmark. More... | |
| const std::function< std::vector< const char * >()> | G_TEST_COMMAND_LINE_ARGUMENTS |
| Retrieve the command line arguments. More... | |
| static std::string | g_running_benchmark_name |
| Retrieve the name of the currently in-use benchmark. More... | |
| const std::function< std::string()> | G_TEST_GET_FULL_NAME |
| Retrieve the unit test name. More... | |
|
static |
Retrieves the available test setup command line arguments that may be used in the benchmark.
They will be used only if the benchmark utilizes a 'BasicTestingSetup' or any child of it.
|
static |
Retrieve the name of the currently in-use benchmark.
This is applicable only to benchmarks that utilize the unit test framework context setup (e.g. ones using 'MakeNoLogFileContext<TestingSetup>()'). It places the datadir of each benchmark run within their respective benchmark name.
| const std::function<std::vector<const char*>()> G_TEST_COMMAND_LINE_ARGUMENTS |
Retrieve the command line arguments.
| const std::function<std::string()> G_TEST_GET_FULL_NAME |
Retrieve the unit test name.