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
qbenchmarkperfevents_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Intel Corporation.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QBENCHMARKPERFEVENTS_P_H
5#define QBENCHMARKPERFEVENTS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtTest/private/qbenchmarkmeasurement_p.h>
19
21
23{
24public:
27 void init() override;
28 void start() override;
29 QList<Measurement> stop() override;
30 bool isMeasurementAccepted(Measurement measurement) override;
31 int adjustIterationCount(int suggestion) override;
32 int adjustMedianCount(int suggestion) override;
33 bool needsWarmupIteration() override { return true; }
34
35 static bool isAvailable();
36 static void setCounter(const char *name);
37 static void listCounters();
38private:
39 QList<int> fds;
40
41 Measurement readValue(qsizetype idx = 0);
42};
43
45
46#endif // QBENCHMARKPERFEVENTS_P_H
int adjustIterationCount(int suggestion) override
QList< Measurement > stop() override
int adjustMedianCount(int suggestion) override
static void setCounter(const char *name)
bool isMeasurementAccepted(Measurement measurement) override
EGLint EGLint EGLint EGLint int int int int * fds
Combined button and popup list for selecting options.
GLuint name
ptrdiff_t qsizetype
Definition qtypes.h:165