Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
918 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2012 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __KIS_LOW_MEMORY_BENCHMARK_H
#define __KIS_LOW_MEMORY_BENCHMARK_H

#include <simpletest.h>

class KisLowMemoryBenchmark : public QObject
{
    Q_OBJECT
private Q_SLOTS:
    void unlimitedMemoryNoHistoryNoPool();
    void unlimitedMemoryHistoryNoPool();
    void unlimitedMemoryHistoryPool50();

    void memory2000History100Pool500HugeBrush();

private:
    void benchmarkWideArea(const QString presetFileName,
                           const QRectF &rect, qreal vstep,
                           int numCycles,
                           bool createTransaction,
                           int hardLimitMiB,
                           int softLimitMiB,
                           int poolLimitMiB,
                           int index);
};

#endif /* __KIS_LOW_MEMORY_BENCHMARK_H */