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_p.h>
Public Member Functions | |
QBenchmarkTestMethodData () | |
~QBenchmarkTestMethodData () | |
void | beginDataRun () |
void | endDataRun () |
bool | isBenchmark () const |
bool | resultsAccepted () const |
int | adjustIterationCount (int suggestion) |
void | setResults (const QList< QBenchmarkMeasurerBase::Measurement > &m, bool setByMacro=true) |
void | setResult (QBenchmarkMeasurerBase::Measurement m, bool setByMacro=true) |
Public Attributes | |
QList< QBenchmarkResult > | results |
bool | valid = false |
bool | resultAccepted = false |
bool | runOnce = false |
int | iterationCount = -1 |
Static Public Attributes | |
static QBenchmarkTestMethodData * | current |
Definition at line 123 of file qbenchmark_p.h.
|
default |
QBenchmarkTestMethodData::~QBenchmarkTestMethodData | ( | ) |
Definition at line 73 of file qbenchmark.cpp.
References current.
int QBenchmarkTestMethodData::adjustIterationCount | ( | int | suggestion | ) |
Definition at line 87 of file qbenchmark.cpp.
References QBenchmarkGlobalData::current, and iterationCount.
Referenced by beginDataRun().
void QBenchmarkTestMethodData::beginDataRun | ( | ) |
Definition at line 78 of file qbenchmark.cpp.
References adjustIterationCount(), and iterationCount.
void QBenchmarkTestMethodData::endDataRun | ( | ) |
Definition at line 83 of file qbenchmark.cpp.
|
inline |
Definition at line 135 of file qbenchmark_p.h.
|
inline |
Definition at line 136 of file qbenchmark_p.h.
|
inline |
Definition at line 139 of file qbenchmark_p.h.
void QBenchmarkTestMethodData::setResults | ( | const QList< QBenchmarkMeasurerBase::Measurement > & | m, |
bool | setByMacro = true ) |
Definition at line 99 of file qbenchmark.cpp.
References QList< T >::constFirst(), QBenchmarkGlobalData::current, current, QList< T >::emplaceBack(), QList< T >::isEmpty(), iterationCount, list, QList< T >::reserve(), resultAccepted, results, runOnce, QList< T >::size(), and valid.
|
static |
Definition at line 126 of file qbenchmark_p.h.
Referenced by QTest::QBenchmarkIterationController::QBenchmarkIterationController(), QTest::QBenchmarkIterationController::~QBenchmarkIterationController(), ~QBenchmarkTestMethodData(), QuickTestResult::beginDataRun(), QuickTestResult::endDataRun(), QTest::QBenchmarkIterationController::isDone(), QTest::iterationCount(), QuickTestResult::measurementAccepted(), QuickTestResult::needsMoreMeasurements(), QTest::setBenchmarkResult(), QTest::setIterationCount(), QTest::setIterationCountHint(), setResults(), QuickTestResult::startBenchmark(), and QuickTestResult::startMeasurement().
int QBenchmarkTestMethodData::iterationCount = -1 |
Definition at line 146 of file qbenchmark_p.h.
Referenced by adjustIterationCount(), beginDataRun(), and setResults().
bool QBenchmarkTestMethodData::resultAccepted = false |
Definition at line 144 of file qbenchmark_p.h.
Referenced by setResults().
QList<QBenchmarkResult> QBenchmarkTestMethodData::results |
Definition at line 142 of file qbenchmark_p.h.
Referenced by setResults().
bool QBenchmarkTestMethodData::runOnce = false |
Definition at line 145 of file qbenchmark_p.h.
Referenced by setResults().
bool QBenchmarkTestMethodData::valid = false |
Definition at line 143 of file qbenchmark_p.h.
Referenced by setResults().