Flutter Engine
 
Loading...
Searching...
No Matches
flutter::RasterCacheMetrics Struct Reference

#include <raster_cache.h>

Public Member Functions

size_t total_count () const
 
size_t total_bytes () const
 

Public Attributes

size_t eviction_count = 0
 
size_t eviction_bytes = 0
 
size_t in_use_count = 0
 
size_t in_use_bytes = 0
 

Detailed Description

Definition at line 63 of file raster_cache.h.

Member Function Documentation

◆ total_bytes()

size_t flutter::RasterCacheMetrics::total_bytes ( ) const
inline

The size of all of the cached images during this frame.

Definition at line 92 of file raster_cache.h.

92{ return in_use_bytes; }

References in_use_bytes.

Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd(), flutter::testing::TEST(), and flutter::testing::TEST().

◆ total_count()

size_t flutter::RasterCacheMetrics::total_count ( ) const
inline

The total cache entries that had images during this frame.

Definition at line 87 of file raster_cache.h.

87{ return in_use_count; }

References in_use_count.

Referenced by flutter::FrameTimingsRecorder::RecordRasterEnd(), flutter::testing::TEST(), and flutter::testing::TEST().

Member Data Documentation

◆ eviction_bytes

size_t flutter::RasterCacheMetrics::eviction_bytes = 0

The size of all of the images evicted in this frame.

Definition at line 72 of file raster_cache.h.

Referenced by flutter::RasterCache::EvictUnusedCacheEntries().

◆ eviction_count

size_t flutter::RasterCacheMetrics::eviction_count = 0

The number of cache entries with images evicted in this frame.

Definition at line 67 of file raster_cache.h.

Referenced by flutter::RasterCache::EvictUnusedCacheEntries().

◆ in_use_bytes

size_t flutter::RasterCacheMetrics::in_use_bytes = 0

The size of all of the images used in this frame.

Definition at line 82 of file raster_cache.h.

Referenced by total_bytes().

◆ in_use_count

size_t flutter::RasterCacheMetrics::in_use_count = 0

The number of cache entries with images used in this frame.

Definition at line 77 of file raster_cache.h.

Referenced by total_count().


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