Public Member Functions | Private Attributes | List of all members
benchmark::internal::FunctionBenchmark Class Reference

#include <benchmark.h>

Inheritance diagram for benchmark::internal::FunctionBenchmark:
Inheritance graph
[legend]

Public Member Functions

 FunctionBenchmark (const char *name, Function *func)
 
virtual void Run (State &st)
 
- Public Member Functions inherited from benchmark::internal::Benchmark
BenchmarkApply (void(*func)(Benchmark *benchmark))
 
BenchmarkArg (int x)
 
BenchmarkArgName (const std::string &name)
 
BenchmarkArgNames (const std::vector< std::string > &names)
 
BenchmarkArgPair (int x, int y)
 
BenchmarkArgs (const std::vector< int > &args)
 
BenchmarkComplexity (BigO complexity=benchmark::oAuto)
 
BenchmarkComplexity (BigOFunc *complexity)
 
BenchmarkDenseRange (int start, int limit, int step=1)
 
BenchmarkDenseThreadRange (int min_threads, int max_threads, int stride=1)
 
BenchmarkIterations (size_t n)
 
BenchmarkMinTime (double t)
 
BenchmarkRange (int start, int limit)
 
BenchmarkRangeMultiplier (int multiplier)
 
BenchmarkRangePair (int lo1, int hi1, int lo2, int hi2)
 
BenchmarkRanges (const std::vector< std::pair< int, int > > &ranges)
 
BenchmarkRepetitions (int n)
 
BenchmarkReportAggregatesOnly (bool value=true)
 
BenchmarkThreadPerCpu ()
 
BenchmarkThreadRange (int min_threads, int max_threads)
 
BenchmarkThreads (int t)
 
BenchmarkUnit (TimeUnit unit)
 
BenchmarkUseManualTime ()
 
BenchmarkUseRealTime ()
 
virtual ~Benchmark ()
 

Private Attributes

Functionfunc_
 

Additional Inherited Members

- Protected Member Functions inherited from benchmark::internal::Benchmark
int ArgsCnt () const
 
 Benchmark (Benchmark const &)
 
 Benchmark (const char *name)
 
void SetName (const char *name)
 
- Static Protected Member Functions inherited from benchmark::internal::Benchmark
static void AddRange (std::vector< int > *dst, int lo, int hi, int mult)
 

Detailed Description

Definition at line 787 of file benchmark.h.

Constructor & Destructor Documentation

◆ FunctionBenchmark()

benchmark::internal::FunctionBenchmark::FunctionBenchmark ( const char *  name,
Function func 
)
inline

Definition at line 789 of file benchmark.h.

Member Function Documentation

◆ Run()

void benchmark::internal::FunctionBenchmark::Run ( State st)
virtual

Implements benchmark::internal::Benchmark.

Definition at line 459 of file benchmark_register.cc.

Member Data Documentation

◆ func_

Function* benchmark::internal::FunctionBenchmark::func_
private

Definition at line 795 of file benchmark.h.


The documentation for this class was generated from the following files:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06