|
proxygen
|
#include <Benchmark.h>
Public Types | |
| using | Clock = std::chrono::high_resolution_clock |
| using | TimePoint = Clock::time_point |
| using | Duration = Clock::duration |
Public Member Functions | |
| BenchmarkSuspender () | |
| BenchmarkSuspender (const BenchmarkSuspender &)=delete | |
| BenchmarkSuspender (BenchmarkSuspender &&rhs) noexcept | |
| BenchmarkSuspender & | operator= (const BenchmarkSuspender &)=delete |
| BenchmarkSuspender & | operator= (BenchmarkSuspender &&rhs) |
| ~BenchmarkSuspender () | |
| void | dismiss () |
| void | rehire () |
| template<class F > | |
| auto | dismissing (F f) -> invoke_result_t< F > |
| operator bool () const | |
Static Public Attributes | |
| static Duration | timeSpent |
Private Member Functions | |
| void | tally () |
Private Attributes | |
| TimePoint | start |
Supporting type for BENCHMARK_SUSPEND defined below.
Definition at line 87 of file Benchmark.h.
| using folly::BenchmarkSuspender::Clock = std::chrono::high_resolution_clock |
Definition at line 88 of file Benchmark.h.
| using folly::BenchmarkSuspender::Duration = Clock::duration |
Definition at line 90 of file Benchmark.h.
| using folly::BenchmarkSuspender::TimePoint = Clock::time_point |
Definition at line 89 of file Benchmark.h.
|
inline |
Definition at line 92 of file Benchmark.h.
|
delete |
|
inlinenoexcept |
|
inline |
|
inline |
Definition at line 118 of file Benchmark.h.
References start.
Referenced by addValue(), atomicIncrBaseline(), BENCHMARK(), BENCHMARK_RELATIVE(), contend(), contentionAtWidth(), dummy(), folly::test::fc_test(), inlineObserve(), notifyInlineObservers(), notifySubscribers(), observe(), runTest(), runTestTag(), subscribeImpl(), TEST(), zeroCopyOff(), and zeroCopyOn().
|
inline |
Definition at line 130 of file Benchmark.h.
References f, and SCOPE_EXIT.
Referenced by BENCHMARK(), BENCHMARK_RELATIVE(), and runContended().
|
inlineexplicit |
This is for use inside of if-conditions, used in BENCHMARK macros. If-conditions bypass the explicit on operator bool.
Definition at line 142 of file Benchmark.h.
|
delete |
|
inline |
|
inline |
Definition at line 124 of file Benchmark.h.
Referenced by contend(), inlineObserve(), notifyInlineObservers(), notifySubscribers(), observe(), runTest(), runTestTag(), subscribeImpl(), zeroCopyOff(), and zeroCopyOn().
|
inlineprivate |
|
private |
Definition at line 158 of file Benchmark.h.
|
static |
Accumulates time spent outside benchmark.
Definition at line 149 of file Benchmark.h.
Referenced by folly::addBenchmark().