NetSurf
Data Fields
image_cache_s Struct Reference

Current state of the cache. More...

Collaboration diagram for image_cache_s:
[legend]

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_sentries
 
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...
 

Detailed Description

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.

Field Documentation

◆ bitmap_count

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().

◆ current_age

cache_age image_cache_s::current_age

◆ entries

struct image_cache_entry_s* image_cache_s::entries

◆ fail_count

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().

◆ fail_size

uint64_t image_cache_s::fail_size

◆ hit_count

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().

◆ hit_size

uint64_t image_cache_s::hit_size

◆ max_bitmap_count

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().

◆ max_bitmap_count_size

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().

◆ max_bitmap_size

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().

◆ max_bitmap_size_count

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().

◆ miss_count

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().

◆ miss_size

uint64_t image_cache_s::miss_size

◆ params

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().

◆ peak_conversions

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().

◆ peak_conversions_size

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().

◆ specultive_miss_count

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().

◆ total_bitmap_size

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().

◆ total_extra_conversions

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().

◆ total_extra_conversions_count

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().

◆ total_unrendered

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().


The documentation for this struct was generated from the following file: