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

#include <qbenchmark_p.h>

+ Collaboration diagram for QBenchmarkGlobalData:

Public Types

enum  Mode {
  WallTime , CallgrindParentProcess , CallgrindChildProcess , PerfCounter ,
  TickCounter , EventCounter
}
 

Public Member Functions

 QBenchmarkGlobalData ()
 
 ~QBenchmarkGlobalData ()
 
void setMode (Mode mode)
 
Mode mode () const
 
QBenchmarkMeasurerBasecreateMeasurer ()
 
int adjustMedianIterationCount ()
 

Public Attributes

QBenchmarkMeasurerBasemeasurer = nullptr
 
QBenchmarkContext context
 
int walltimeMinimum = -1
 
int iterationCount = -1
 
int medianIterationCount = -1
 
bool createChart = false
 
bool verboseOutput = false
 
QString callgrindOutFileBase
 
int minimumTotal = -1
 

Static Public Attributes

static QBenchmarkGlobalDatacurrent
 

Detailed Description

Definition at line 91 of file qbenchmark_p.h.

Member Enumeration Documentation

◆ Mode

Enumerator
WallTime 
CallgrindParentProcess 
CallgrindChildProcess 
PerfCounter 
TickCounter 
EventCounter 

Definition at line 98 of file qbenchmark_p.h.

Constructor & Destructor Documentation

◆ QBenchmarkGlobalData()

QBenchmarkGlobalData::QBenchmarkGlobalData ( )

Definition at line 17 of file qbenchmark.cpp.

References setMode().

+ Here is the call graph for this function:

◆ ~QBenchmarkGlobalData()

QBenchmarkGlobalData::~QBenchmarkGlobalData ( )

Definition at line 22 of file qbenchmark.cpp.

References current, and measurer.

Member Function Documentation

◆ adjustMedianIterationCount()

int QBenchmarkGlobalData::adjustMedianIterationCount ( )

Definition at line 62 of file qbenchmark.cpp.

References QBenchmarkMeasurerBase::adjustMedianCount(), measurer, and medianIterationCount.

Referenced by QuickTestResult::needsMoreMeasurements().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createMeasurer()

QBenchmarkMeasurerBase * QBenchmarkGlobalData::createMeasurer ( )

Definition at line 37 of file qbenchmark.cpp.

References CallgrindChildProcess, CallgrindParentProcess, EventCounter, QBenchmarkMeasurerBase::init(), measurer, PerfCounter, and TickCounter.

Referenced by setMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mode()

Mode QBenchmarkGlobalData::mode ( ) const
inline

Definition at line 100 of file qbenchmark_p.h.

Referenced by setMode().

+ Here is the caller graph for this function:

◆ setMode()

void QBenchmarkGlobalData::setMode ( Mode  mode)

Definition at line 29 of file qbenchmark.cpp.

References createMeasurer(), measurer, and mode().

Referenced by QBenchmarkGlobalData(), and QTest::qtest_qParseArgs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ callgrindOutFileBase

◆ context

QBenchmarkContext QBenchmarkGlobalData::context

◆ createChart

bool QBenchmarkGlobalData::createChart = false

Definition at line 109 of file qbenchmark_p.h.

◆ current

◆ iterationCount

int QBenchmarkGlobalData::iterationCount = -1

◆ measurer

◆ medianIterationCount

int QBenchmarkGlobalData::medianIterationCount = -1

Definition at line 108 of file qbenchmark_p.h.

Referenced by adjustMedianIterationCount(), and QTest::qtest_qParseArgs().

◆ minimumTotal

int QBenchmarkGlobalData::minimumTotal = -1

Definition at line 112 of file qbenchmark_p.h.

Referenced by QTest::qtest_qParseArgs().

◆ verboseOutput

bool QBenchmarkGlobalData::verboseOutput = false

Definition at line 110 of file qbenchmark_p.h.

Referenced by QTest::qtest_qParseArgs().

◆ walltimeMinimum

int QBenchmarkGlobalData::walltimeMinimum = -1

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