Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qbenchmark.h>
Public Types | |
enum | RunMode { RepeatUntilValidMeasurement , RunOnce } |
Public Member Functions | |
QBenchmarkIterationController () | |
QBenchmarkIterationController (RunMode runMode) | |
~QBenchmarkIterationController () | |
bool | isDone () const noexcept |
void | next () noexcept |
Public Attributes | |
int | i |
The QBenchmarkIterationController class is used by the QBENCHMARK macro to drive the benchmarking loop. It is responsible for starting and stopping the timing measurements as well as calling the result reporting functions.
Definition at line 24 of file qbenchmark.h.
Enumerator | |
---|---|
RepeatUntilValidMeasurement | |
RunOnce |
Definition at line 27 of file qbenchmark.h.
QTest::QBenchmarkIterationController::QBenchmarkIterationController | ( | ) |
Definition at line 155 of file qbenchmark.cpp.
References QTest::beginBenchmarkMeasurement(), and i.
QTest::QBenchmarkIterationController::QBenchmarkIterationController | ( | RunMode | runMode | ) |
Definition at line 147 of file qbenchmark.cpp.
References QTest::beginBenchmarkMeasurement(), QBenchmarkTestMethodData::current, i, and RunOnce.
QTest::QBenchmarkIterationController::~QBenchmarkIterationController | ( | ) |
Definition at line 163 of file qbenchmark.cpp.
References QBenchmarkTestMethodData::current, and QTest::endBenchmarkMeasurement().
|
noexcept |
Definition at line 170 of file qbenchmark.cpp.
References QBenchmarkTestMethodData::current, i, and QTest::iterationCount().
|
noexcept |
Definition at line 179 of file qbenchmark.cpp.
References i.
int QTest::QBenchmarkIterationController::i |
Definition at line 33 of file qbenchmark.h.
Referenced by QBenchmarkIterationController().