25 {.extra_args = extra_args},
28 bench.
run([&] { log(); });
43 Logging(bench, {
"-logthreadnames=1"}, [] {
LogInfo(
"%s\n",
"test"); });
48 Logging(bench, {
"-logthreadnames=0"}, [] {
LogInfo(
"%s\n",
"test"); });
54 Logging(bench, {
"-nodebuglogfile",
"-debug=1"}, [] {
static void LogWithThreadNames(benchmark::Bench &bench)
static void LogWithoutWriteToFile(benchmark::Bench &bench)
static void LogWithoutDebug(benchmark::Bench &bench)
static void LogWithDebug(benchmark::Bench &bench)
BENCHMARK(LogWithDebug, benchmark::PriorityLevel::HIGH)
static void Logging(benchmark::Bench &bench, const std::vector< const char * > &extra_args, const std::function< void()> &log)
static void LogWithoutThreadNames(benchmark::Bench &bench)
void DisableCategory(LogFlags flag)
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
BCLog::Logger & LogInstance()
#define LogDebug(category,...)
Testing setup that configures a complete environment.