yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gfx::Arena::SheetCacheStats Struct Reference

Statistics for sheet cache performance. More...

#include <arena.h>

Public Member Functions

void Reset ()
 
float HitRate () const
 

Public Attributes

size_t hits = 0
 
size_t misses = 0
 
size_t evictions = 0
 
size_t current_size = 0
 

Detailed Description

Statistics for sheet cache performance.

Definition at line 295 of file arena.h.

Member Function Documentation

◆ Reset()

void yaze::gfx::Arena::SheetCacheStats::Reset ( )
inline

Definition at line 301 of file arena.h.

References current_size, evictions, hits, and misses.

Referenced by yaze::gfx::Arena::ResetSheetCacheStats().

◆ HitRate()

float yaze::gfx::Arena::SheetCacheStats::HitRate ( ) const
inline

Definition at line 308 of file arena.h.

References hits, and misses.

Member Data Documentation

◆ hits

size_t yaze::gfx::Arena::SheetCacheStats::hits = 0

Definition at line 296 of file arena.h.

Referenced by yaze::gfx::Arena::GetSheetWithCache(), HitRate(), and Reset().

◆ misses

size_t yaze::gfx::Arena::SheetCacheStats::misses = 0

Definition at line 297 of file arena.h.

Referenced by yaze::gfx::Arena::GetSheetWithCache(), HitRate(), and Reset().

◆ evictions

size_t yaze::gfx::Arena::SheetCacheStats::evictions = 0

Definition at line 298 of file arena.h.

Referenced by yaze::gfx::Arena::EvictLRUSheets(), and Reset().

◆ current_size

size_t yaze::gfx::Arena::SheetCacheStats::current_size = 0

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