![]() |
|
#include <benchmark.h>
Public Member Functions | |
Benchmark (const char *name, void(*fn)(int)) | |
Benchmark (const char *name, void(*fn_range)(int, int)) | |
Benchmark * | Arg (int x) |
Benchmark * | Range (int lo, int hi) |
const char * | Name () |
bool | ShouldRun (int argc, char *argv[]) |
void | Run () |
Private Member Functions | |
void | Register (const char *name, void(*fn)(int), void(*fn_range)(int, int)) |
void | RunRepeatedlyWithArg (int iterations, int arg) |
void | RunWithArg (int arg) |
Private Attributes | |
const char * | name_ |
void(* | fn_ )(int) |
void(* | fn_range_ )(int, int) |
std::vector< int > | args_ |
References plotDoE::name, and Register().
References plotDoE::name, and Register().
References args_.
|
private |
void testing::Benchmark::Run | ( | ) |
References args_, fn_, i, name_, and RunWithArg().
References fn_, fn_range_, g_benchmark_start_time_ns, g_benchmark_total_time_ns, g_flops_processed, and NanoTime().
Referenced by RunWithArg().
|
private |
References fn_range_, g_benchmark_total_time_ns, g_flops_processed, g_name_column_width, Eigen::placeholders::last, max, min, name_, Round(), RunRepeatedlyWithArg(), seconds(), and fix_broken_doxygen_formulae::stdout.
Referenced by Run().
|
private |
Referenced by Register(), Run(), and RunRepeatedlyWithArg().
Referenced by Register(), RunRepeatedlyWithArg(), and RunWithArg().
|
private |
Referenced by Name(), Register(), Run(), RunWithArg(), and ShouldRun().