File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -826,6 +826,7 @@ int jl_gc_classify_pools(size_t sz, int *osize)
826
826
827
827
gc_fragmentation_stat_t gc_page_fragmentation_stats [JL_GC_N_POOLS ];
828
828
JL_DLLEXPORT double jl_gc_page_utilization_stats [JL_GC_N_MAX_POOLS ];
829
+ JL_DLLEXPORT gc_fragmentation_stat_t jl_gc_page_fragmentation_stats_export [JL_GC_N_POOLS ];
829
830
830
831
STATIC_INLINE void gc_update_page_fragmentation_data (jl_gc_pagemeta_t * pg ) JL_NOTSAFEPOINT
831
832
{
@@ -845,6 +846,8 @@ STATIC_INLINE void gc_dump_page_utilization_data(void) JL_NOTSAFEPOINT
845
846
utilization -= ((double )n_freed_objs * (double )jl_gc_sizeclasses [i ]) / (double )n_pages_allocd / (double )GC_PAGE_SZ ;
846
847
}
847
848
jl_gc_page_utilization_stats [i ] = utilization ;
849
+ jl_gc_page_fragmentation_stats_export [i ].n_freed_objs = n_freed_objs ;
850
+ jl_gc_page_fragmentation_stats_export [i ].n_pages_allocd = n_pages_allocd ;
848
851
jl_atomic_store_relaxed (& stats -> n_freed_objs , 0 );
849
852
jl_atomic_store_relaxed (& stats -> n_pages_allocd , 0 );
850
853
}
You can’t perform that action at this time.
0 commit comments