#include <kis_memory_statistics_server.h>
◆ KisMemoryStatisticsServer()
| KisMemoryStatisticsServer::KisMemoryStatisticsServer |
( |
| ) |
|
The first instance() call may happen from non-gui thread, so we should ensure the signals and timers are running in the correct (GUI) thread.
Definition at line 31 of file kis_memory_statistics_server.cpp.
33{
39 moveToThread(qApp->thread());
41}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
const QScopedPointer< Private > m_d
void sigUpdateMemoryStatistics()
References connect(), m_d, and sigUpdateMemoryStatistics().
◆ ~KisMemoryStatisticsServer()
| KisMemoryStatisticsServer::~KisMemoryStatisticsServer |
( |
| ) |
|
|
override |
◆ fetchMemoryStatistics()
Definition at line 128 of file kis_memory_statistics_server.cpp.
129{
132
133 Statistics stats;
134 if (image) {
135 stats.imageSize =
137 stats.layersSize,
138 stats.projectionsSize,
139 stats.lodSize);
140 }
144 stats.poolSize = tileStats.
poolSize;
145
146 stats.swapSize = tileStats.
swapSize;
147
149
150 stats.tilesHardLimit = cfg.tilesHardLimit() *
MiB;
151 stats.tilesSoftLimit = cfg.tilesSoftLimit() *
MiB;
152 stats.tilesPoolLimit = cfg.poolLimit() *
MiB;
153 stats.totalMemoryLimit = stats.tilesHardLimit + stats.tilesPoolLimit;
154
155 return stats;
156}
MemoryStatistics memoryStatistics()
static KisTileDataStore * instance()
qint64 calculateNodeMemoryHiBound(KisNodeSP node, qint64 &layersSize, qint64 &projectionsSize, qint64 &lodSize)
qint64 historicalMemorySize
References calculateNodeMemoryHiBound(), KisMemoryStatisticsServer::Statistics::historicalMemorySize, KisTileDataStore::MemoryStatistics::historicalMemorySize, KisMemoryStatisticsServer::Statistics::imageSize, KisTileDataStore::instance(), KisMemoryStatisticsServer::Statistics::layersSize, KisMemoryStatisticsServer::Statistics::lodSize, KisTileDataStore::memoryStatistics(), MiB, KisImageConfig::poolLimit(), KisMemoryStatisticsServer::Statistics::poolSize, KisTileDataStore::MemoryStatistics::poolSize, KisMemoryStatisticsServer::Statistics::projectionsSize, KisMemoryStatisticsServer::Statistics::realMemorySize, KisTileDataStore::MemoryStatistics::realMemorySize, KisNodeFacade::root, KisMemoryStatisticsServer::Statistics::swapSize, KisTileDataStore::MemoryStatistics::swapSize, KisImageConfig::tilesHardLimit(), KisMemoryStatisticsServer::Statistics::tilesHardLimit, KisMemoryStatisticsServer::Statistics::tilesPoolLimit, KisImageConfig::tilesSoftLimit(), KisMemoryStatisticsServer::Statistics::tilesSoftLimit, KisMemoryStatisticsServer::Statistics::totalMemoryLimit, KisMemoryStatisticsServer::Statistics::totalMemorySize, and KisTileDataStore::MemoryStatistics::totalMemorySize.
◆ instance()
◆ notifyImageChanged
| void KisMemoryStatisticsServer::notifyImageChanged |
( |
| ) |
|
|
slot |
◆ Private()
◆ sigUpdateMemoryStatistics
| void KisMemoryStatisticsServer::sigUpdateMemoryStatistics |
( |
| ) |
|
|
signal |
◆ tryForceUpdateMemoryStatisticsWhileIdle
| void KisMemoryStatisticsServer::tryForceUpdateMemoryStatisticsWhileIdle |
( |
| ) |
|
|
slot |
◆ m_d
| const QScopedPointer<Private> KisMemoryStatisticsServer::m_d |
|
private |
◆ updateCompressor
The documentation for this class was generated from the following files: