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>.
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 QBenchmarkGlobalData::current, and iterationCount.

Referenced by beginDataRun().

+ Here is the caller graph for this function:

◆ beginDataRun()

void QBenchmarkTestMethodData::beginDataRun ( )

Definition at line 78 of file qbenchmark.cpp.

References adjustIterationCount(), and iterationCount.

+ Here is the call graph for this function:

◆ endDataRun()

void QBenchmarkTestMethodData::endDataRun ( )

Definition at line 83 of file qbenchmark.cpp.

◆ 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.

◆ setResult()

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

Definition at line 139 of file qbenchmark_p.h.

◆ 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::current, current, QList< T >::emplaceBack(), QList< T >::isEmpty(), iterationCount, list, QList< T >::reserve(), resultAccepted, results, runOnce, QList< T >::size(), and valid.

+ Here is the call graph for this function:

Member Data Documentation

◆ current

◆ iterationCount

int QBenchmarkTestMethodData::iterationCount = -1

Definition at line 146 of file qbenchmark_p.h.

Referenced by adjustIterationCount(), beginDataRun(), and setResults().

◆ resultAccepted

bool QBenchmarkTestMethodData::resultAccepted = false

Definition at line 144 of file qbenchmark_p.h.

Referenced by setResults().

◆ results

QList<QBenchmarkResult> QBenchmarkTestMethodData::results

Definition at line 142 of file qbenchmark_p.h.

Referenced by setResults().

◆ runOnce

bool QBenchmarkTestMethodData::runOnce = false

Definition at line 145 of file qbenchmark_p.h.

Referenced by setResults().

◆ 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: