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
20QT_BEGIN_NAMESPACE
21
22class QCsvBenchmarkLogger : public QAbstractTestLogger
23{
24public:
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
42QT_END_NAMESPACE
43
44#endif // QCSVBENCHMARKLOGGER_P_H
45

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