Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_memory_statistics_server.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_MEMORY_STATISTICS_SERVER_H
8#define __KIS_MEMORY_STATISTICS_SERVER_H
9
10#include <QtGlobal>
11#include <QObject>
12#include <QScopedPointer>
13
14#include "kritaimage_export.h"
15#include "kis_types.h"
16
17
18class KRITAIMAGE_EXPORT KisMemoryStatisticsServer : public QObject
19{
20 Q_OBJECT
21public:
23 {
25 : imageSize(0),
26 layersSize(0),
27 projectionsSize(0),
28 lodSize(0),
29
30 totalMemorySize(0),
31 realMemorySize(0),
32 historicalMemorySize(0),
33 poolSize(0),
34
35 swapSize(0),
36
37 totalMemoryLimit(0),
38 tilesHardLimit(0),
39 tilesSoftLimit(0),
40 tilesPoolLimit(0)
41 {
42 }
43
44 qint64 imageSize;
45 qint64 layersSize;
47 qint64 lodSize;
48
52 qint64 poolSize;
53
54 qint64 swapSize;
55
60 };
61
62
63
64public:
68
69 Statistics fetchMemoryStatistics(KisImageSP image) const;
70
71public Q_SLOTS:
72 void notifyImageChanged();
73 void tryForceUpdateMemoryStatisticsWhileIdle();
74
75Q_SIGNALS:
77
78
79private:
80 struct Private;
81 const QScopedPointer<Private> m_d;
82};
83
84#endif /* __KIS_MEMORY_STATISTICS_SERVER_H */
PythonPluginManager * instance
const QScopedPointer< Private > m_d