Memory statistics (total memory, memory usage, Undo / Redo stack size)

into the System INfo dialog.
This commit is contained in:
bubnikv 2019-07-19 11:12:38 +02:00
parent f1f6fe5fb5
commit 2de6d95322
5 changed files with 49 additions and 10 deletions

View file

@ -68,6 +68,7 @@ public:
// Set maximum memory threshold. If the threshold is exceeded, least recently used snapshots are released.
void set_memory_limit(size_t memsize);
size_t get_memory_limit() const;
// Estimate size of the RAM consumed by the Undo / Redo stack.
size_t memsize() const;