![]() |
Qt 6.x
The Qt SDK
|
#include <qbenchmark_p.h>
Collaboration diagram for QBenchmarkTestMethodData: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 QBenchmarkMeasurerBase::adjustIterationCount(), QBenchmarkGlobalData::current, QBenchmarkGlobalData::iterationCount, iterationCount, and QBenchmarkGlobalData::measurer.
Referenced by beginDataRun(), and QTest::setIterationCountHint().
Here is the call graph for this function:
Here is the caller graph for this function:| void QBenchmarkTestMethodData::beginDataRun | ( | ) |
Definition at line 78 of file qbenchmark.cpp.
References adjustIterationCount(), and iterationCount.
Referenced by QuickTestResult::beginDataRun().
Here is the call graph for this function:
Here is the caller graph for this function:| void QBenchmarkTestMethodData::endDataRun | ( | ) |
Definition at line 83 of file qbenchmark.cpp.
Referenced by QuickTestResult::endDataRun().
Here is the caller graph for this function:
|
inline |
Definition at line 135 of file qbenchmark_p.h.
|
inline |
Definition at line 136 of file qbenchmark_p.h.
Referenced by QuickTestResult::measurementAccepted().
Here is the caller graph for this function:
|
inline |
Definition at line 139 of file qbenchmark_p.h.
Referenced by QTest::setBenchmarkResult().
Here is the caller graph for this function:| void QBenchmarkTestMethodData::setResults | ( | const QList< QBenchmarkMeasurerBase::Measurement > & | m, |
| bool | setByMacro = true |
||
| ) |
Definition at line 99 of file qbenchmark.cpp.
References QList< T >::constFirst(), QBenchmarkGlobalData::context, QBenchmarkGlobalData::current, current, QList< T >::emplaceBack(), QList< T >::isEmpty(), QBenchmarkMeasurerBase::isMeasurementAccepted(), iterationCount, list, QBenchmarkGlobalData::measurer, QList< T >::reserve(), resultAccepted, results, runOnce, QList< T >::size(), valid, QBenchmarkMeasurerBase::Measurement::value, and QBenchmarkGlobalData::walltimeMinimum.
Referenced by QTest::QBenchmarkIterationController::~QBenchmarkIterationController().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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(), QTest::iterationCount(), QTest::setIterationCount(), and setResults().
| bool QBenchmarkTestMethodData::resultAccepted = false |
Definition at line 144 of file qbenchmark_p.h.
Referenced by QTest::setIterationCount(), setResults(), and QuickTestResult::startBenchmark().
| QList<QBenchmarkResult> QBenchmarkTestMethodData::results |
Definition at line 142 of file qbenchmark_p.h.
Referenced by QuickTestResult::endDataRun(), setResults(), and QuickTestResult::startBenchmark().
| bool QBenchmarkTestMethodData::runOnce = false |
Definition at line 145 of file qbenchmark_p.h.
Referenced by QTest::QBenchmarkIterationController::QBenchmarkIterationController(), and setResults().
| bool QBenchmarkTestMethodData::valid = false |
Definition at line 143 of file qbenchmark_p.h.
Referenced by setResults().