Class RPmallocThreadStatistics

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class RPmallocThreadStatistics
    extends Struct
    implements NativeResource

    Member documentation

    • sizecache – Current number of bytes available in thread size class caches for small and medium sizes (<32KiB)
    • spancache – Current number of bytes available in thread span caches for small and medium sizes (<32KiB)
    • thread_to_global – Total number of bytes transitioned from thread cache to global cache (only if ENABLE_STATISTICS=1)
    • global_to_thread – Total number of bytes transitioned from global cache to thread cache (only if ENABLE_STATISTICS=1)
    • span_use[32] – Per span count statistics (only if ENABLE_STATISTICS=1)
    • size_use[128] – Per size class statistics (only if ENABLE_STATISTICS=1)

    Layout

    
     struct rpmalloc_thread_statistics_t {
         size_t sizecache;
         size_t spancache;
         size_t thread_to_global;
         size_t global_to_thread;
         struct {
             size_t current;
             size_t peak;
             size_t to_global;
             size_t from_global;
             size_t to_cache;
             size_t from_cache;
             size_t to_reserved;
             size_t from_reserved;
             size_t map_calls;
         } span_use[32];
         struct {
             size_t alloc_current;
             size_t alloc_peak;
             size_t alloc_total;
             size_t free_total;
             size_t spans_to_cache;
             size_t spans_from_cache;
             size_t spans_from_reserved;
             size_t map_calls;
         } size_use[128];
     }