aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/x11vkbtest/testreporter.h
blob: c844430e521385232d61adb7eaa06e5bd1e2c2d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef CSVPRINTER_H
#define CSVPRINTER_H

#include <QObject>

class TestBase;

class TestReporter : public QObject
{
    Q_OBJECT
public:
    explicit TestReporter(QObject *parent = nullptr);

public:
    void startMemoryReport();
    void printTestResultsToCSV(const QList<TestBase *> &tests) const;
    void printTestResultToConsole(const QList<TestBase *> &tests) const;

public slots:
    void printMemoryResultToCSV(const QString minPeakMemoryReport) const;
    void currentMemUsage(const quint64 timeElapsed, const ulong memSize) const;
};

#endif // CSVPRINTER_H