![]() |
Qt 6.x
The Qt SDK
|
#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 |
| QBenchmarkMeasurerBase * | createMeasurer () |
| int | adjustMedianIterationCount () |
Public Attributes | |
| QBenchmarkMeasurerBase * | measurer = 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 QBenchmarkGlobalData * | current |
Definition at line 91 of file qbenchmark_p.h.
| Enumerator | |
|---|---|
| WallTime | |
| CallgrindParentProcess | |
| CallgrindChildProcess | |
| PerfCounter | |
| TickCounter | |
| EventCounter | |
Definition at line 98 of file qbenchmark_p.h.
| QBenchmarkGlobalData::QBenchmarkGlobalData | ( | ) |
Definition at line 17 of file qbenchmark.cpp.
References setMode().
Here is the call graph for this function:| QBenchmarkGlobalData::~QBenchmarkGlobalData | ( | ) |
Definition at line 22 of file qbenchmark.cpp.
| 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:| 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:
|
inline |
Definition at line 100 of file qbenchmark_p.h.
Referenced by setMode().
Here is the caller graph for this function: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:| QString QBenchmarkGlobalData::callgrindOutFileBase |
Definition at line 111 of file qbenchmark_p.h.
Referenced by QBenchmarkValgrindUtils::cleanup(), QBenchmarkValgrindUtils::getNewestFileName(), QTest::qtest_qParseArgs(), and QBenchmarkValgrindUtils::runCallgrindSubProcess().
| QBenchmarkContext QBenchmarkGlobalData::context |
Definition at line 105 of file qbenchmark_p.h.
Referenced by QBenchmarkTestMethodData::setResults(), and QuickTestResult::startBenchmark().
| bool QBenchmarkGlobalData::createChart = false |
Definition at line 109 of file qbenchmark_p.h.
|
static |
Definition at line 94 of file qbenchmark_p.h.
Referenced by QuickTestResult::QuickTestResult(), ~QBenchmarkGlobalData(), QBenchmarkTestMethodData::adjustIterationCount(), QTest::beginBenchmarkMeasurement(), QBenchmarkValgrindUtils::cleanup(), QTest::endBenchmarkMeasurement(), QuickTestResult::endDataRun(), QBenchmarkValgrindUtils::getNewestFileName(), QTest::TestMethods::invokeTests(), QuickTestResult::needsMoreMeasurements(), QuickTestResult::parseArgs(), QTest::qCleanup(), QTest::qInit(), QTest::qRun(), QTest::qtest_qParseArgs(), QBenchmarkValgrindUtils::runCallgrindSubProcess(), QBenchmarkTestMethodData::setResults(), QuickTestResult::startBenchmark(), and QuickTestResult::startMeasurement().
| int QBenchmarkGlobalData::iterationCount = -1 |
Definition at line 107 of file qbenchmark_p.h.
Referenced by QBenchmarkTestMethodData::adjustIterationCount(), and QTest::qtest_qParseArgs().
| QBenchmarkMeasurerBase* QBenchmarkGlobalData::measurer = nullptr |
Definition at line 104 of file qbenchmark_p.h.
Referenced by ~QBenchmarkGlobalData(), QBenchmarkTestMethodData::adjustIterationCount(), adjustMedianIterationCount(), QTest::beginBenchmarkMeasurement(), createMeasurer(), QTest::endBenchmarkMeasurement(), setMode(), QBenchmarkTestMethodData::setResults(), and QuickTestResult::startMeasurement().
| int QBenchmarkGlobalData::medianIterationCount = -1 |
Definition at line 108 of file qbenchmark_p.h.
Referenced by adjustMedianIterationCount(), and QTest::qtest_qParseArgs().
| int QBenchmarkGlobalData::minimumTotal = -1 |
Definition at line 112 of file qbenchmark_p.h.
Referenced by QTest::qtest_qParseArgs().
| bool QBenchmarkGlobalData::verboseOutput = false |
Definition at line 110 of file qbenchmark_p.h.
Referenced by QTest::qtest_qParseArgs().
| int QBenchmarkGlobalData::walltimeMinimum = -1 |
Definition at line 106 of file qbenchmark_p.h.
Referenced by QTest::qtest_qParseArgs(), and QBenchmarkTestMethodData::setResults().