Namespaces | |
| cycleclock | |
| internal | |
Classes | |
| class | Barrier |
| class | BenchmarkReporter |
| struct | ChooseClockType |
| class | ConsoleReporter |
| class | Counter |
| class | CSVReporter |
| class | Fixture |
| class | JSONReporter |
| struct | LeastSq |
| class | MutexLock |
| class | Regex |
| class | Stat1 |
| class | Stat1MinMax |
| class | State |
| class | Vector2 |
| class | Vector3 |
| class | Vector4 |
Typedefs | |
| typedef double() | BigOFunc(int) |
| typedef std::condition_variable | Condition |
| typedef Stat1< double, int64_t > | Stat1_d |
| typedef Stat1< float, int64_t > | Stat1_f |
| typedef Stat1MinMax< double, int64_t > | Stat1MinMax_d |
| typedef Stat1MinMax< float, int64_t > | Stat1MinMax_f |
| typedef std::map< std::string, Counter > | UserCounters |
Enumerations | |
| enum | BigO { oNone, o1, oN, oNSquared, oNCubed, oLogN, oNLogN, oAuto, oLambda } |
| enum | LogColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE, COLOR_MAGENTA, COLOR_CYAN, COLOR_WHITE } |
| enum | TimeUnit { kNanosecond, kMicrosecond, kMillisecond } |
Functions | |
| void | AppendHumanReadable (int n, std::string *str) |
| bool | BoolFromEnv (const char *flag, bool default_value) |
| class | CAPABILITY ("mutex") Mutex |
| double | ChildrenCPUUsage () |
| double | ChronoClockNow () |
| void | ClearRegisteredBenchmarks () |
| void | ColorPrintf (std::ostream &out, LogColor color, const char *fmt, va_list args) |
| void | ColorPrintf (std::ostream &out, LogColor color, const char *fmt,...) |
| std::vector< BenchmarkReporter::Run > | ComputeBigO (const std::vector< BenchmarkReporter::Run > &reports) |
| std::vector< BenchmarkReporter::Run > | ComputeStats (const std::vector< BenchmarkReporter::Run > &reports) |
| bool | CpuScalingEnabled () |
| double | CyclesPerSecond (void) |
| template<class Tp > | |
| BENCHMARK_ALWAYS_INLINE void | DoNotOptimize (Tp const &value) |
| double | DoubleFromEnv (const char *flag, double default_val) |
| std::string | ExponentToPrefix (int64_t exponent, bool iec) |
| BigOFunc * | FittingCurve (BigO complexity) |
| static std::string | FlagToEnvVar (const char *flag) |
| std::string | FormatString (const char *msg, va_list args) |
| std::string | FormatString (const char *msg,...) |
| std::string | GetBigOString (BigO complexity) |
| double | GetTimeUnitMultiplier (TimeUnit unit) |
| const char * | GetTimeUnitString (TimeUnit unit) |
| std::string | HumanReadableNumber (double n) |
| static void | IgnoreColorPrint (std::ostream &out, LogColor, const char *fmt,...) |
| void | Initialize (int *argc, char **argv) |
| int32_t | Int32FromEnv (const char *flag, int32_t default_value) |
| bool | IsColorTerminal () |
| bool | IsFlag (const char *str, const char *flag) |
| bool | IsTruthyFlagValue (const std::string &value) |
| std::string | LocalDateTimeString () |
| LeastSq | MinimalLeastSq (const std::vector< int > &n, const std::vector< double > &time, BigOFunc *fitting_curve) |
| LeastSq | MinimalLeastSq (const std::vector< int > &n, const std::vector< double > &time, const BigO complexity) |
| int | NumCPUs (void) |
| template<typename VType , typename NumType > | |
| std::ostream & | operator<< (std::ostream &out, const Stat1< VType, NumType > &s) |
| template<typename VType , typename NumType > | |
| std::ostream & | operator<< (std::ostream &out, const Stat1MinMax< VType, NumType > &s) |
| bool | ParseBoolFlag (const char *str, const char *flag, bool *value) |
| bool | ParseDouble (const std::string &src_text, const char *str, double *value) |
| bool | ParseDoubleFlag (const char *str, const char *flag, double *value) |
| const char * | ParseFlagValue (const char *str, const char *flag, bool def_optional) |
| bool | ParseInt32 (const std::string &src_text, const char *str, int32_t *value) |
| bool | ParseInt32Flag (const char *str, const char *flag, int32_t *value) |
| bool | ParseStringFlag (const char *str, const char *flag, std::string *value) |
| double | ProcessCPUUsage () |
| internal::Benchmark * | RegisterBenchmark (const char *name, internal::Function *fn) |
| void | ReplaceAll (std::string *str, const std::string &from, const std::string &to) |
| bool | ReportUnrecognizedArguments (int argc, char **argv) |
| size_t | RunSpecifiedBenchmarks () |
| size_t | RunSpecifiedBenchmarks (BenchmarkReporter *console_reporter) |
| size_t | RunSpecifiedBenchmarks (BenchmarkReporter *console_reporter, BenchmarkReporter *file_reporter) |
| void | SleepForMicroseconds (int microseconds) |
| void | SleepForMilliseconds (int milliseconds) |
| void | SleepForSeconds (double seconds) |
| template<class... Args> | |
| std::string | StrCat (Args &&... args) |
| std::ostream & | StringCatImp (std::ostream &out) BENCHMARK_NOEXCEPT |
| template<class First , class... Rest> | |
| std::ostream & | StringCatImp (std::ostream &out, First &&f, Rest &&... rest) |
| const char * | StringFromEnv (const char *flag, const char *default_value) |
| std::string | StringPrintF (const char *format,...) |
| std::string | StringPrintFImp (const char *msg, va_list args) |
| double | ThreadCPUUsage () |
| std::string | ToBinaryStringFullySpecified (double value, double threshold, int precision) |
| void | ToExponentAndMantissa (double val, double thresh, int precision, double one_k, std::string *mantissa, int64_t *exponent) |
Variables | |
| const int | kNumMicrosPerMilli = 1000 |
| const int | kNumMicrosPerSecond = kNumMillisPerSecond * 1000 |
| const int | kNumMillisPerSecond = 1000 |
| const int | kNumNanosPerMicro = 1000 |
| const int | kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond |
| typedef double() benchmark::BigOFunc(int) |
Definition at line 379 of file benchmark.h.
| typedef std::condition_variable benchmark::Condition |
Definition at line 69 of file protobuf/third_party/benchmark/src/mutex.h.
| typedef Stat1<double, int64_t> benchmark::Stat1_d |
| typedef Stat1<float, int64_t> benchmark::Stat1_f |
| typedef Stat1MinMax<double, int64_t> benchmark::Stat1MinMax_d |
| typedef Stat1MinMax<float, int64_t> benchmark::Stat1MinMax_f |
| typedef std::map<std::string, Counter> benchmark::UserCounters |
Definition at line 364 of file benchmark.h.
| enum benchmark::BigO |
| Enumerator | |
|---|---|
| oNone | |
| o1 | |
| oN | |
| oNSquared | |
| oNCubed | |
| oLogN | |
| oNLogN | |
| oAuto | |
| oLambda | |
Definition at line 375 of file benchmark.h.
| enum benchmark::LogColor |
| Enumerator | |
|---|---|
| COLOR_DEFAULT | |
| COLOR_RED | |
| COLOR_GREEN | |
| COLOR_YELLOW | |
| COLOR_BLUE | |
| COLOR_MAGENTA | |
| COLOR_CYAN | |
| COLOR_WHITE | |
Definition at line 9 of file colorprint.h.
| enum benchmark::TimeUnit |
| Enumerator | |
|---|---|
| kNanosecond | |
| kMicrosecond | |
| kMillisecond | |
Definition at line 369 of file benchmark.h.
| void benchmark::AppendHumanReadable | ( | int | n, |
| std::string * | str | ||
| ) |
Definition at line 111 of file string_util.cc.
| bool benchmark::BoolFromEnv | ( | const char * | flag, |
| bool | default_value | ||
| ) |
Definition at line 95 of file commandlineflags.cc.
| class benchmark::CAPABILITY | ( | "mutex" | ) |
Definition at line 75 of file protobuf/third_party/benchmark/src/mutex.h.
| double benchmark::ChildrenCPUUsage | ( | ) |
| void benchmark::ClearRegisteredBenchmarks | ( | ) |
Definition at line 463 of file benchmark_register.cc.
Definition at line 128 of file colorprint.cc.
Definition at line 121 of file colorprint.cc.
| std::vector< BenchmarkReporter::Run > benchmark::ComputeBigO | ( | const std::vector< BenchmarkReporter::Run > & | reports | ) |
Definition at line 256 of file complexity.cc.
| std::vector< BenchmarkReporter::Run > benchmark::ComputeStats | ( | const std::vector< BenchmarkReporter::Run > & | reports | ) |
Definition at line 153 of file complexity.cc.
| bool benchmark::CpuScalingEnabled | ( | ) |
Definition at line 336 of file sysinfo.cc.
| double benchmark::CyclesPerSecond | ( | void | ) |
Definition at line 316 of file sysinfo.cc.
|
inline |
Definition at line 328 of file benchmark.h.
| double benchmark::DoubleFromEnv | ( | const char * | flag, |
| double | default_val | ||
| ) |
| std::string benchmark::ExponentToPrefix | ( | int64_t | exponent, |
| bool | iec | ||
| ) |
Definition at line 88 of file string_util.cc.
Definition at line 29 of file complexity.cc.
|
static |
Definition at line 81 of file commandlineflags.cc.
| std::string benchmark::FormatString | ( | const char * | msg, |
| va_list | args | ||
| ) |
Definition at line 85 of file colorprint.cc.
| std::string benchmark::FormatString | ( | const char * | msg, |
| ... | |||
| ) |
Definition at line 113 of file colorprint.cc.
| std::string benchmark::GetBigOString | ( | BigO | complexity | ) |
Definition at line 48 of file complexity.cc.
|
inline |
Definition at line 1196 of file benchmark.h.
|
inline |
Definition at line 1184 of file benchmark.h.
| std::string benchmark::HumanReadableNumber | ( | double | n | ) |
Definition at line 118 of file string_util.cc.
|
static |
Definition at line 93 of file console_reporter.cc.
| void benchmark::Initialize | ( | int * | argc, |
| char ** | argv | ||
| ) |
Definition at line 703 of file benchmark.cc.
| int32_t benchmark::Int32FromEnv | ( | const char * | flag, |
| int32_t | default_value | ||
| ) |
Definition at line 105 of file commandlineflags.cc.
| bool benchmark::IsColorTerminal | ( | ) |
Definition at line 158 of file colorprint.cc.
| bool benchmark::IsFlag | ( | const char * | str, |
| const char * | flag | ||
| ) |
Definition at line 208 of file commandlineflags.cc.
| bool benchmark::IsTruthyFlagValue | ( | const std::string & | value | ) |
Definition at line 212 of file commandlineflags.cc.
| std::string benchmark::LocalDateTimeString | ( | ) |
| LeastSq benchmark::MinimalLeastSq | ( | const std::vector< int > & | n, |
| const std::vector< double > & | time, | ||
| BigOFunc * | fitting_curve | ||
| ) |
Definition at line 77 of file complexity.cc.
| LeastSq benchmark::MinimalLeastSq | ( | const std::vector< int > & | n, |
| const std::vector< double > & | time, | ||
| const BigO | complexity | ||
| ) |
Definition at line 121 of file complexity.cc.
| int benchmark::NumCPUs | ( | void | ) |
Definition at line 321 of file sysinfo.cc.
| std::ostream& benchmark::operator<< | ( | std::ostream & | out, |
| const Stat1< VType, NumType > & | s | ||
| ) |
| std::ostream& benchmark::operator<< | ( | std::ostream & | out, |
| const Stat1MinMax< VType, NumType > & | s | ||
| ) |
| bool benchmark::ParseBoolFlag | ( | const char * | str, |
| const char * | flag, | ||
| bool * | value | ||
| ) |
Definition at line 161 of file commandlineflags.cc.
| bool benchmark::ParseDouble | ( | const std::string & | src_text, |
| const char * | str, | ||
| double * | value | ||
| ) |
Definition at line 61 of file commandlineflags.cc.
| bool benchmark::ParseDoubleFlag | ( | const char * | str, |
| const char * | flag, | ||
| double * | value | ||
| ) |
Definition at line 185 of file commandlineflags.cc.
| const char* benchmark::ParseFlagValue | ( | const char * | str, |
| const char * | flag, | ||
| bool | def_optional | ||
| ) |
Definition at line 136 of file commandlineflags.cc.
| bool benchmark::ParseInt32 | ( | const std::string & | src_text, |
| const char * | str, | ||
| int32_t * | value | ||
| ) |
Definition at line 27 of file commandlineflags.cc.
| bool benchmark::ParseInt32Flag | ( | const char * | str, |
| const char * | flag, | ||
| int32_t * | value | ||
| ) |
Definition at line 173 of file commandlineflags.cc.
| bool benchmark::ParseStringFlag | ( | const char * | str, |
| const char * | flag, | ||
| std::string * | value | ||
| ) |
Definition at line 197 of file commandlineflags.cc.
|
inline |
Definition at line 821 of file benchmark.h.
| void benchmark::ReplaceAll | ( | std::string * | str, |
| const std::string & | from, | ||
| const std::string & | to | ||
| ) |
Definition at line 163 of file string_util.cc.
| bool benchmark::ReportUnrecognizedArguments | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 708 of file benchmark.cc.
| size_t benchmark::RunSpecifiedBenchmarks | ( | ) |
Definition at line 571 of file benchmark.cc.
| size_t benchmark::RunSpecifiedBenchmarks | ( | BenchmarkReporter * | console_reporter | ) |
Definition at line 575 of file benchmark.cc.
| size_t benchmark::RunSpecifiedBenchmarks | ( | BenchmarkReporter * | console_reporter, |
| BenchmarkReporter * | file_reporter | ||
| ) |
Definition at line 579 of file benchmark.cc.
|
inline |
Definition at line 29 of file string_util.h.
|
inline |
Definition at line 17 of file string_util.h.
|
inline |
Definition at line 22 of file string_util.h.
| const char * benchmark::StringFromEnv | ( | const char * | flag, |
| const char * | default_value | ||
| ) |
Definition at line 125 of file commandlineflags.cc.
| std::string benchmark::StringPrintF | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 155 of file string_util.cc.
| std::string benchmark::StringPrintFImp | ( | const char * | msg, |
| va_list | args | ||
| ) |
Definition at line 125 of file string_util.cc.
| std::string benchmark::ToBinaryStringFullySpecified | ( | double | value, |
| double | threshold, | ||
| int | precision | ||
| ) |
Definition at line 102 of file string_util.cc.
| void benchmark::ToExponentAndMantissa | ( | double | val, |
| double | thresh, | ||
| int | precision, | ||
| double | one_k, | ||
| std::string * | mantissa, | ||
| int64_t * | exponent | ||
| ) |
Definition at line 32 of file string_util.cc.
| const int benchmark::kNumMicrosPerSecond = kNumMillisPerSecond * 1000 |
| const int benchmark::kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond |