Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QBenchmarkTestMethodData Class Reference

#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< QBenchmarkResultresults
 
bool valid = false
 
bool resultAccepted = false
 
bool runOnce = false
 
int iterationCount = -1
 

Static Public Attributes

static QBenchmarkTestMethodDatacurrent
 

Detailed Description

Definition at line 123 of file qbenchmark_p.h.

Constructor & Destructor Documentation

◆ QBenchmarkTestMethodData()

QBenchmarkTestMethodData::QBenchmarkTestMethodData ( )
default

◆ ~QBenchmarkTestMethodData()

QBenchmarkTestMethodData::~QBenchmarkTestMethodData ( )

Definition at line 73 of file qbenchmark.cpp.

References current.

Member Function Documentation

◆ adjustIterationCount()

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:

◆ beginDataRun()

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:

◆ endDataRun()

void QBenchmarkTestMethodData::endDataRun ( )

Definition at line 83 of file qbenchmark.cpp.

Referenced by QuickTestResult::endDataRun().

+ Here is the caller graph for this function:

◆ isBenchmark()

bool QBenchmarkTestMethodData::isBenchmark ( ) const
inline

Definition at line 135 of file qbenchmark_p.h.

◆ resultsAccepted()

bool QBenchmarkTestMethodData::resultsAccepted ( ) const
inline

Definition at line 136 of file qbenchmark_p.h.

Referenced by QuickTestResult::measurementAccepted().

+ Here is the caller graph for this function:

◆ setResult()

void QBenchmarkTestMethodData::setResult ( QBenchmarkMeasurerBase::Measurement  m,
bool  setByMacro = true 
)
inline

Definition at line 139 of file qbenchmark_p.h.

Referenced by QTest::setBenchmarkResult().

+ Here is the caller graph for this function:

◆ setResults()

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:

Member Data Documentation

◆ current

◆ iterationCount

int QBenchmarkTestMethodData::iterationCount = -1

◆ resultAccepted

bool QBenchmarkTestMethodData::resultAccepted = false

◆ results

QList<QBenchmarkResult> QBenchmarkTestMethodData::results

◆ runOnce

bool QBenchmarkTestMethodData::runOnce = false

◆ valid

bool QBenchmarkTestMethodData::valid = false

Definition at line 143 of file qbenchmark_p.h.

Referenced by setResults().


The documentation for this class was generated from the following files: