1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QBENCHMARKMETRIC_H
6#define QBENCHMARKMETRIC_H
7
8#include <QtTest/qttestglobal.h>
9
10QT_BEGIN_NAMESPACE
11
12
13namespace QTest {
14
15enum QBenchmarkMetric {
16 FramesPerSecond,
17 BitsPerSecond,
18 BytesPerSecond,
19 WalltimeMilliseconds,
20 CPUTicks,
21 InstructionReads,
22 Events,
23 WalltimeNanoseconds,
24 BytesAllocated,
25 CPUMigrations,
26 CPUCycles,
27 BusCycles,
28 StalledCycles,
29 Instructions,
30 BranchInstructions,
31 BranchMisses,
32 CacheReferences,
33 CacheReads,
34 CacheWrites,
35 CachePrefetches,
36 CacheMisses,
37 CacheReadMisses,
38 CacheWriteMisses,
39 CachePrefetchMisses,
40 ContextSwitches,
41 PageFaults,
42 MinorPageFaults,
43 MajorPageFaults,
44 AlignmentFaults,
45 EmulationFaults,
46 RefCPUCycles,
47};
48
49}
50
51QT_END_NAMESPACE
52
53#endif // QBENCHMARK_H
54

source code of qtbase/src/testlib/qbenchmarkmetric.h