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

+ Here is the call 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().

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

Member Data Documentation

◆ callgrindOutFileBase

QString QBenchmarkGlobalData::callgrindOutFileBase

Definition at line 111 of file qbenchmark_p.h.

◆ context

QBenchmarkContext QBenchmarkGlobalData::context

Definition at line 105 of file qbenchmark_p.h.

◆ createChart

bool QBenchmarkGlobalData::createChart = false

Definition at line 109 of file qbenchmark_p.h.

◆ current

◆ iterationCount

int QBenchmarkGlobalData::iterationCount = -1

Definition at line 107 of file qbenchmark_p.h.

◆ measurer

QBenchmarkMeasurerBase* QBenchmarkGlobalData::measurer = nullptr

◆ medianIterationCount

int QBenchmarkGlobalData::medianIterationCount = -1

Definition at line 108 of file qbenchmark_p.h.

Referenced by adjustMedianIterationCount().

◆ minimumTotal

int QBenchmarkGlobalData::minimumTotal = -1

Definition at line 112 of file qbenchmark_p.h.

◆ verboseOutput

bool QBenchmarkGlobalData::verboseOutput = false

Definition at line 110 of file qbenchmark_p.h.

◆ walltimeMinimum

int QBenchmarkGlobalData::walltimeMinimum = -1

Definition at line 106 of file qbenchmark_p.h.


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