We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd9e03 commit f4ead3dCopy full SHA for f4ead3d
src/gc-stock.c
@@ -3506,6 +3506,12 @@ JL_DLLEXPORT void jl_gc_collect(jl_gc_collection_t collection)
3506
SetLastError(last_error);
3507
#endif
3508
errno = last_errno;
3509
+
3510
+ int64_t pool_live_bytes = jl_gc_pool_live_bytes();
3511
+ int64_t pool_bytes_in_pages = jl_atomic_load_relaxed(&gc_heap_stats.bytes_resident);
3512
+ jl_safe_printf("Utilization in pool allocator: %f, %lld live bytes and %lld bytes in pages\n",
3513
+ (double)pool_live_bytes / (double)pool_bytes_in_pages,
3514
+ (long long)pool_live_bytes, (long long)pool_bytes_in_pages);
3515
}
3516
3517
void gc_mark_queue_all_roots(jl_ptls_t ptls, jl_gc_markqueue_t *mq)
0 commit comments