Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 72 of file qbenchmark.cpp.

Member Function Documentation

◆ adjustIterationCount()

int QBenchmarkTestMethodData::adjustIterationCount ( int suggestion)

Definition at line 86 of file qbenchmark.cpp.

◆ beginDataRun()

void QBenchmarkTestMethodData::beginDataRun ( )

Definition at line 77 of file qbenchmark.cpp.

◆ endDataRun()

void QBenchmarkTestMethodData::endDataRun ( )

Definition at line 82 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 98 of file qbenchmark.cpp.

Member Data Documentation

◆ current

QBenchmarkTestMethodData * QBenchmarkTestMethodData::current
static

Definition at line 126 of file qbenchmark_p.h.

◆ iterationCount

int QBenchmarkTestMethodData::iterationCount = -1

Definition at line 146 of file qbenchmark_p.h.

◆ resultAccepted

bool QBenchmarkTestMethodData::resultAccepted = false

Definition at line 144 of file qbenchmark_p.h.

◆ results

QList<QBenchmarkResult> QBenchmarkTestMethodData::results

Definition at line 142 of file qbenchmark_p.h.

◆ runOnce

bool QBenchmarkTestMethodData::runOnce = false

Definition at line 145 of file qbenchmark_p.h.

◆ valid

bool QBenchmarkTestMethodData::valid = false

Definition at line 143 of file qbenchmark_p.h.


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