NetSurf
|
Current state of the cache. More...
Data Fields | |
struct image_cache_parameters | params |
Cache parameters. More... | |
cache_age | current_age |
The "age" of the current operation. More... | |
struct image_cache_entry_s * | entries |
size_t | total_bitmap_size |
total size of bitmaps currently allocated More... | |
int | bitmap_count |
Total count of bitmaps currently allocated. More... | |
size_t | max_bitmap_size |
Maximum size of bitmaps allocated at any one time. More... | |
int | max_bitmap_size_count |
The number of objects when maximum bitmap usage occurred. More... | |
int | max_bitmap_count |
Maximum count of bitmaps allocated at any one time. More... | |
size_t | max_bitmap_count_size |
The size of the bitmaps when the max count occurred. More... | |
int | miss_count |
Bitmap was not available at plot time required conversion. More... | |
uint64_t | miss_size |
int | hit_count |
Bitmap was available at plot time required no conversion. More... | |
uint64_t | hit_size |
int | fail_count |
Bitmap was not available at plot time and required conversion which failed. More... | |
uint64_t | fail_size |
int | total_unrendered |
int | specultive_miss_count |
Bitmap was available but never required - wasted conversions. More... | |
int | total_extra_conversions |
Total number of additional (after the first) conversions. More... | |
int | total_extra_conversions_count |
counts total number of images with more than one conversion More... | |
int | peak_conversions |
Bitmap with most conversions was converted this many times. More... | |
unsigned int | peak_conversions_size |
Size of bitmap with most conversions. More... | |
Current state of the cache.
Global state of the cache. entries "age" is determined based on a monotonically incrementing operation count. This avoids issues with using wall clock time while allowing the LRU algorithm to work sensibly.
Definition at line 82 of file image_cache.c.
int image_cache_s::bitmap_count |
Total count of bitmaps currently allocated.
Definition at line 99 of file image_cache.c.
Referenced by image_cache__free_bitmap(), image_cache_fini(), and image_cache_stats_bitmap_add().
cache_age image_cache_s::current_age |
The "age" of the current operation.
Definition at line 87 of file image_cache.c.
Referenced by image_cache__background_update(), image_cache__clean(), image_cache__free_bitmap(), image_cache_add(), image_cache_fini(), image_cache_redraw(), image_cache_snentryf(), and image_cache_stats_bitmap_add().
struct image_cache_entry_s* image_cache_s::entries |
Definition at line 90 of file image_cache.c.
Referenced by image_cache__clean(), image_cache__find(), image_cache__findn(), image_cache__link(), image_cache__unlink(), and image_cache_fini().
int image_cache_s::fail_count |
Bitmap was not available at plot time and required conversion which failed.
Definition at line 120 of file image_cache.c.
Referenced by image_cache_add(), image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
uint64_t image_cache_s::fail_size |
Definition at line 121 of file image_cache.c.
Referenced by image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
int image_cache_s::hit_count |
Bitmap was available at plot time required no conversion.
Definition at line 115 of file image_cache.c.
Referenced by image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
uint64_t image_cache_s::hit_size |
Definition at line 116 of file image_cache.c.
Referenced by image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
int image_cache_s::max_bitmap_count |
Maximum count of bitmaps allocated at any one time.
Definition at line 107 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
size_t image_cache_s::max_bitmap_count_size |
The size of the bitmaps when the max count occurred.
Definition at line 109 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
size_t image_cache_s::max_bitmap_size |
Maximum size of bitmaps allocated at any one time.
Definition at line 102 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
int image_cache_s::max_bitmap_size_count |
The number of objects when maximum bitmap usage occurred.
Definition at line 104 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
int image_cache_s::miss_count |
Bitmap was not available at plot time required conversion.
Definition at line 112 of file image_cache.c.
Referenced by image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
uint64_t image_cache_s::miss_size |
Definition at line 113 of file image_cache.c.
Referenced by image_cache_fini(), image_cache_get_bitmap(), image_cache_redraw(), and image_cache_snsummaryf().
struct image_cache_parameters image_cache_s::params |
Cache parameters.
Definition at line 84 of file image_cache.c.
Referenced by image_cache__background_update(), image_cache__clean(), image_cache_init(), and image_cache_speculate().
int image_cache_s::peak_conversions |
Bitmap with most conversions was converted this many times.
Definition at line 134 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
unsigned int image_cache_s::peak_conversions_size |
Size of bitmap with most conversions.
Definition at line 136 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
int image_cache_s::specultive_miss_count |
Bitmap was available but never required - wasted conversions.
Definition at line 126 of file image_cache.c.
Referenced by image_cache__free_bitmap(), and image_cache_fini().
size_t image_cache_s::total_bitmap_size |
total size of bitmaps currently allocated
Definition at line 96 of file image_cache.c.
Referenced by image_cache__clean(), image_cache__free_bitmap(), image_cache_fini(), image_cache_speculate(), and image_cache_stats_bitmap_add().
int image_cache_s::total_extra_conversions |
Total number of additional (after the first) conversions.
Definition at line 129 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
int image_cache_s::total_extra_conversions_count |
counts total number of images with more than one conversion
Definition at line 131 of file image_cache.c.
Referenced by image_cache_fini(), and image_cache_stats_bitmap_add().
int image_cache_s::total_unrendered |
Definition at line 124 of file image_cache.c.
Referenced by image_cache__free_entry(), and image_cache_fini().