Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QBenchmarkMeasurerBase Class Referenceabstract

#include <qbenchmarkmeasurement_p.h>

+ Inheritance diagram for QBenchmarkMeasurerBase:
+ Collaboration diagram for QBenchmarkMeasurerBase:

Classes

struct  Measurement
 

Public Member Functions

virtual ~QBenchmarkMeasurerBase ()=default
 
virtual void init ()
 
virtual void start ()=0
 
virtual QList< Measurementstop ()=0
 
virtual bool isMeasurementAccepted (Measurement m)=0
 
virtual int adjustIterationCount (int suggestion)=0
 
virtual int adjustMedianCount (int suggestion)=0
 
virtual bool needsWarmupIteration ()
 

Detailed Description

Definition at line 24 of file qbenchmarkmeasurement_p.h.

Constructor & Destructor Documentation

◆ ~QBenchmarkMeasurerBase()

virtual QBenchmarkMeasurerBase::~QBenchmarkMeasurerBase ( )
virtualdefault

Member Function Documentation

◆ adjustIterationCount()

virtual int QBenchmarkMeasurerBase::adjustIterationCount ( int  suggestion)
pure virtual

Implemented in QBenchmarkTimeMeasurer, QBenchmarkEvent, QBenchmarkPerfEventsMeasurer, and QBenchmarkCallgrindMeasurer.

Referenced by QBenchmarkTestMethodData::adjustIterationCount().

+ Here is the caller graph for this function:

◆ adjustMedianCount()

virtual int QBenchmarkMeasurerBase::adjustMedianCount ( int  suggestion)
pure virtual

Implemented in QBenchmarkEvent, QBenchmarkPerfEventsMeasurer, QBenchmarkTimeMeasurer, and QBenchmarkCallgrindMeasurer.

Referenced by QBenchmarkGlobalData::adjustMedianIterationCount().

+ Here is the caller graph for this function:

◆ init()

virtual void QBenchmarkMeasurerBase::init ( )
inlinevirtual

Reimplemented in QBenchmarkPerfEventsMeasurer.

Definition at line 33 of file qbenchmarkmeasurement_p.h.

Referenced by QBenchmarkGlobalData::createMeasurer().

+ Here is the caller graph for this function:

◆ isMeasurementAccepted()

virtual bool QBenchmarkMeasurerBase::isMeasurementAccepted ( Measurement  m)
pure virtual

Implemented in QBenchmarkEvent, QBenchmarkPerfEventsMeasurer, QBenchmarkTimeMeasurer, and QBenchmarkCallgrindMeasurer.

Referenced by QBenchmarkTestMethodData::setResults().

+ Here is the caller graph for this function:

◆ needsWarmupIteration()

virtual bool QBenchmarkMeasurerBase::needsWarmupIteration ( )
inlinevirtual

Reimplemented in QBenchmarkPerfEventsMeasurer, QBenchmarkTimeMeasurer, and QBenchmarkCallgrindMeasurer.

Definition at line 39 of file qbenchmarkmeasurement_p.h.

Referenced by QuickTestResult::startMeasurement().

+ Here is the caller graph for this function:

◆ start()

virtual void QBenchmarkMeasurerBase::start ( )
pure virtual

Implemented in QBenchmarkEvent, QBenchmarkPerfEventsMeasurer, QBenchmarkTimeMeasurer, and QBenchmarkCallgrindMeasurer.

Referenced by QTest::beginBenchmarkMeasurement().

+ Here is the caller graph for this function:

◆ stop()

virtual QList< Measurement > QBenchmarkMeasurerBase::stop ( )
pure virtual

Implemented in QBenchmarkEvent, QBenchmarkPerfEventsMeasurer, QBenchmarkTimeMeasurer, and QBenchmarkCallgrindMeasurer.

Referenced by QTest::endBenchmarkMeasurement().

+ Here is the caller graph for this function:

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