20#include <QtCore/qglobal.h>
22#if defined(Q_OS_LINUX) && !defined(QT_LINUXBASE) && !defined(Q_OS_ANDROID)
23#define QTESTLIB_USE_PERF_EVENTS
25#undef QTESTLIB_USE_PERF_EVENTS
28#include <QtTest/private/qbenchmarkmeasurement_p.h>
30#include <QtTest/qttestglobal.h>
31#if QT_CONFIG(valgrind)
32#include <QtTest/private/qbenchmarkvalgrind_p.h>
34#ifdef QTESTLIB_USE_PERF_EVENTS
35#include <QtTest/private/qbenchmarkperfevents_p.h>
37#include <QtTest/private/qbenchmarkevent_p.h>
38#include <QtTest/private/qbenchmarkmetric_p.h>
102 int adjustMedianIterationCount();
106 int walltimeMinimum = -1;
107 int iterationCount = -1;
108 int medianIterationCount = -1;
109 bool createChart =
false;
110 bool verboseOutput =
false;
112 int minimumTotal = -1;
114 Mode mode_ = WallTime;
137 int adjustIterationCount(
int suggestion);
140 { setResults({
m }, setByMacro); }
144 bool resultAccepted =
false;
145 bool runOnce =
false;
146 int iterationCount = -1;
QBenchmarkContext context
static QBenchmarkGlobalData * current
QString callgrindOutFileBase
QBenchmarkResult(const QBenchmarkContext &context, QBenchmarkMeasurerBase::Measurement m, const int iterations, bool setByMacro)
QBenchmarkContext context
bool operator<(const QBenchmarkResult &other) const
QBenchmarkMeasurerBase::Measurement measurement
QBenchmarkResult()=default
static QBenchmarkTestMethodData * current
QBenchmarkTestMethodData()
QList< QBenchmarkResult > results
void setResult(QBenchmarkMeasurerBase::Measurement m, bool setByMacro=true)
bool resultsAccepted() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString arg(qlonglong a, int fieldwidth=0, int base=10, QChar fillChar=u' ') const
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Combined button and popup list for selecting options.
QList< QBenchmarkMeasurerBase::Measurement > endBenchmarkMeasurement()
void setIterationCountHint(int count)
void setIterationCount(int count)
void beginBenchmarkMeasurement()
GLenum GLenum GLsizei count
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QBenchmarkContext()=default