Searched refs:benchmark_func_t (Results 1 - 2 of 2) sorted by relevance

/bionic/benchmarks/
H A Dutil.h25 typedef void (*benchmark_func_t) (void); typedef
29 extern std::map<std::string, std::pair<benchmark_func_t, std::string>> g_str_to_func;
31 static int __attribute__((unused)) EmplaceBenchmark(const std::string& fn_name, benchmark_func_t fn_ptr, const std::string& arg = "") {
39 int _bionic_benchmark_##n __attribute__((unused)) = EmplaceBenchmark(std::string(#n), reinterpret_cast<benchmark_func_t>(n))
42 int _bionic_benchmark_##n __attribute__((unused)) = EmplaceBenchmark(std::string(#n), reinterpret_cast<benchmark_func_t>(n), arg)
H A Dbionic_benchmarks.cpp74 std::map<std::string, std::pair<benchmark_func_t, std::string>> g_str_to_func;
207 void LockAndRun(benchmark::State& state, benchmark_func_t func_to_bench, long cpu_to_lock) {
322 benchmark_func_t benchmark_function = g_str_to_func.at(fn_name).first;

Completed in 71 milliseconds