File indexing completed on 2025-02-16 04:05:06
0001 /* 0002 * SPDX-FileCopyrightText: 2012 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_LOW_MEMORY_BENCHMARK_H 0008 #define __KIS_LOW_MEMORY_BENCHMARK_H 0009 0010 #include <simpletest.h> 0011 0012 class KisLowMemoryBenchmark : public QObject 0013 { 0014 Q_OBJECT 0015 private Q_SLOTS: 0016 void unlimitedMemoryNoHistoryNoPool(); 0017 void unlimitedMemoryHistoryNoPool(); 0018 void unlimitedMemoryHistoryPool50(); 0019 0020 void memory2000History100Pool500HugeBrush(); 0021 0022 private: 0023 void benchmarkWideArea(const QString presetFileName, 0024 const QRectF &rect, qreal vstep, 0025 int numCycles, 0026 bool createTransaction, 0027 int hardLimitMiB, 0028 int softLimitMiB, 0029 int poolLimitMiB, 0030 int index); 0031 }; 0032 0033 #endif /* __KIS_LOW_MEMORY_BENCHMARK_H */