[layers] Stats on memory usage in the Stats screen. Tracks the number and total memory size of the pages (bitmaps) used by layers and their backups. Doesn't count housekeeping costs.

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1074 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-10-13 19:07:58 +00:00
parent 7690cd9e50
commit 2dcc1cf8bd
3 changed files with 39 additions and 5 deletions

View File

@@ -90,4 +90,13 @@ void Update_depth_buffer(void);
void Redraw_layered_image(void);
void Redraw_current_layer(void);
///
/// STATISTICS
///
/// Total number of unique bitmaps (layers, animation frames, backups)
extern long Stats_pages_number;
/// Total memory used by bitmaps (layers, animation frames, backups)
extern long long Stats_pages_memory;
#endif