Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qcsvbenchmarklogger_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
QCSVBENCHMARKLOGGER_P_H
5
#
define
QCSVBENCHMARKLOGGER_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
"qabstracttestlogger_p.h"
19
20
QT_BEGIN_NAMESPACE
21
22
class
QCsvBenchmarkLogger
:
public
QAbstractTestLogger
23
{
24
public
:
25
QCsvBenchmarkLogger
(
const
char
*filename);
26
~
QCsvBenchmarkLogger
();
27
28
void
startLogging
()
override
;
29
void
stopLogging
()
override
;
30
31
void
enterTestFunction
(
const
char
*function)
override
;
32
void
leaveTestFunction
()
override
;
33
34
void
addIncident
(IncidentTypes type,
const
char
*description,
35
const
char
*file =
nullptr
,
int
line = 0)
override
;
36
void
addBenchmarkResult
(
const
QBenchmarkResult
&result)
override
;
37
38
void
addMessage
(
MessageTypes
type,
const
QString &message,
39
const
char
*file =
nullptr
,
int
line = 0)
override
;
40
};
41
42
QT_END_NAMESPACE
43
44
#
endif
// QCSVBENCHMARKLOGGER_P_H
QAbstractTestLogger::outputString
void outputString(const char *msg)
Convenience method to write msg to the output stream.
Definition
qabstracttestlogger.cpp:204
QAbstractTestLogger::MessageTypes
MessageTypes
The members whose names begin with Q describe messages that originate in calls, by the test or code u...
Definition
qabstracttestlogger_p.h:46
QBenchmarkResult
Definition
qbenchmark_p.h:61
QBenchmarkResult::iterations
int iterations
Definition
qbenchmark_p.h:65
QCsvBenchmarkLogger
Definition
qcsvbenchmarklogger_p.h:23
QCsvBenchmarkLogger::QCsvBenchmarkLogger
QCsvBenchmarkLogger(const char *filename)
Definition
qcsvbenchmarklogger.cpp:20
QCsvBenchmarkLogger::addIncident
void addIncident(IncidentTypes type, const char *description, const char *file=nullptr, int line=0) override
This virtual method is called when an event occurs that relates to the resolution of the test.
Definition
qcsvbenchmarklogger.cpp:47
QCsvBenchmarkLogger::enterTestFunction
void enterTestFunction(const char *function) override
This virtual method is called before each test function is invoked.
Definition
qcsvbenchmarklogger.cpp:37
QCsvBenchmarkLogger::addBenchmarkResult
void addBenchmarkResult(const QBenchmarkResult &result) override
This virtual method is called after a benchmark has been run enough times to produce usable data.
Definition
qcsvbenchmarklogger.cpp:52
QCsvBenchmarkLogger::stopLogging
void stopLogging() override
Called after the end of a test run.
Definition
qcsvbenchmarklogger.cpp:32
QCsvBenchmarkLogger::leaveTestFunction
void leaveTestFunction() override
This virtual method is called after a test function has completed, to match \l enterTestFunction().
Definition
qcsvbenchmarklogger.cpp:42
QCsvBenchmarkLogger::addMessage
void addMessage(MessageTypes type, const QString &message, const char *file=nullptr, int line=0) override
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition
qcsvbenchmarklogger.cpp:74
QCsvBenchmarkLogger::startLogging
void startLogging() override
Called before the start of a test run.
Definition
qcsvbenchmarklogger.cpp:27
QCsvBenchmarkLogger::~QCsvBenchmarkLogger
~QCsvBenchmarkLogger()
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
testlib
qcsvbenchmarklogger_p.h
Generated on
for Qt by
1.18.0