@@ -34,6 +34,8 @@ pub mod expected {
3434 pub const USED_TARGETS : Range < u64 > = 1 ..4 ;
3535 pub const COLOR_TARGETS : Range < u64 > = 1 ..4 ;
3636 pub const ALPHA_TARGETS : Range < u64 > = 0 ..2 ;
37+ pub const RENDERED_PICTURE_CACHE_TILES : Range < u64 > = 0 ..5 ;
38+ pub const TOTAL_PICTURE_CACHE_TILES : Range < u64 > = 0 ..15 ;
3739 pub const CREATED_TARGETS : Range < u64 > = 0 ..3 ;
3840 pub const CHANGED_TARGETS : Range < u64 > = 0 ..3 ;
3941 pub const TEXTURE_DATA_UPLOADED : Range < u64 > = 0 ..10 ;
@@ -788,6 +790,8 @@ pub struct RendererProfileCounters {
788790 pub color_targets : AverageIntProfileCounter ,
789791 pub alpha_targets : AverageIntProfileCounter ,
790792 pub texture_data_uploaded : AverageIntProfileCounter ,
793+ pub rendered_picture_cache_tiles : AverageIntProfileCounter ,
794+ pub total_picture_cache_tiles : AverageIntProfileCounter ,
791795}
792796
793797pub struct RendererProfileTimers {
@@ -826,6 +830,14 @@ impl RendererProfileCounters {
826830 "Texture data, kb" ,
827831 None , Some ( expected:: TEXTURE_DATA_UPLOADED ) ,
828832 ) ,
833+ rendered_picture_cache_tiles : AverageIntProfileCounter :: new (
834+ "Rendered tiles" ,
835+ None , Some ( expected:: RENDERED_PICTURE_CACHE_TILES ) ,
836+ ) ,
837+ total_picture_cache_tiles : AverageIntProfileCounter :: new (
838+ "Total tiles" ,
839+ None , Some ( expected:: TOTAL_PICTURE_CACHE_TILES ) ,
840+ ) ,
829841 }
830842 }
831843
@@ -835,6 +847,8 @@ impl RendererProfileCounters {
835847 self . color_targets . reset ( ) ;
836848 self . alpha_targets . reset ( ) ;
837849 self . texture_data_uploaded . reset ( ) ;
850+ self . rendered_picture_cache_tiles . reset ( ) ;
851+ self . total_picture_cache_tiles . reset ( ) ;
838852 }
839853}
840854
@@ -1421,6 +1435,7 @@ impl Profiler {
14211435 & renderer_profile. alpha_targets ,
14221436 & renderer_profile. draw_calls ,
14231437 & renderer_profile. vertices ,
1438+ & renderer_profile. rendered_picture_cache_tiles ,
14241439 & renderer_profile. texture_data_uploaded ,
14251440 & self . ipc_time ,
14261441 & self . backend_time ,
@@ -1450,6 +1465,8 @@ impl Profiler {
14501465 & renderer_profile. frame_counter ,
14511466 & renderer_profile. color_targets ,
14521467 & renderer_profile. alpha_targets ,
1468+ & renderer_profile. rendered_picture_cache_tiles ,
1469+ & renderer_profile. total_picture_cache_tiles ,
14531470 & renderer_profile. texture_data_uploaded ,
14541471 ] ,
14551472 None ,
@@ -1621,6 +1638,8 @@ impl Profiler {
16211638 & renderer_profile. alpha_targets ,
16221639 & renderer_profile. draw_calls ,
16231640 & renderer_profile. vertices ,
1641+ & renderer_profile. rendered_picture_cache_tiles ,
1642+ & renderer_profile. total_picture_cache_tiles ,
16241643 ] ,
16251644 & [
16261645 & backend_profile. resources . gpu_cache . allocated_rows ,
0 commit comments