@@ -192,16 +192,16 @@ pub enum MemoryCapability {
192192#[ derive( Debug ) ]
193193pub struct RegionStats {
194194 /// Total usable size of the heap region in bytes.
195- size : usize ,
195+ pub size : usize ,
196196
197197 /// Currently used size of the heap region in bytes.
198- used : usize ,
198+ pub used : usize ,
199199
200200 /// Free size of the heap region in bytes.
201- free : usize ,
201+ pub free : usize ,
202202
203203 /// Capabilities of the memory region.
204- capabilities : EnumSet < MemoryCapability > ,
204+ pub capabilities : EnumSet < MemoryCapability > ,
205205}
206206
207207impl Display for RegionStats {
@@ -302,25 +302,25 @@ impl HeapRegion {
302302#[ derive( Debug ) ]
303303pub struct HeapStats {
304304 /// Granular stats for all the configured memory regions.
305- region_stats : [ Option < RegionStats > ; 3 ] ,
305+ pub region_stats : [ Option < RegionStats > ; 3 ] ,
306306
307307 /// Total size of all combined heap regions in bytes.
308- size : usize ,
308+ pub size : usize ,
309309
310310 /// Current usage of the heap across all configured regions in bytes.
311- current_usage : usize ,
311+ pub current_usage : usize ,
312312
313313 /// Estimation of the max used heap in bytes.
314314 #[ cfg( feature = "internal-heap-stats" ) ]
315- max_usage : usize ,
315+ pub max_usage : usize ,
316316
317317 /// Estimation of the total allocated bytes since initialization.
318318 #[ cfg( feature = "internal-heap-stats" ) ]
319- total_allocated : usize ,
319+ pub total_allocated : usize ,
320320
321321 /// Estimation of the total freed bytes since initialization.
322322 #[ cfg( feature = "internal-heap-stats" ) ]
323- total_freed : usize ,
323+ pub total_freed : usize ,
324324}
325325
326326impl Display for HeapStats {
0 commit comments