Class RPmallocGlobalStatistics

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

    public class RPmallocGlobalStatistics
    extends Struct
    implements NativeResource

    Member documentation

    • mapped – Current amount of virtual memory mapped, all of which might not have been committed (only if ENABLE_STATISTICS=1)
    • mapped_peak – Peak amount of virtual memory mapped, all of which might not have been committed (only if ENABLE_STATISTICS=1)
    • cached – Current amount of memory in global caches for small and medium sizes (<32KiB)
    • huge_alloc – Current amount of memory allocated in huge allocations, i.e larger than LARGE_SIZE_LIMIT which is 2MiB by default (only if ENABLE_STATISTICS=1)
    • huge_alloc_peak – Peak amount of memory allocated in huge allocations, i.e larger than LARGE_SIZE_LIMIT which is 2MiB by default (only if ENABLE_STATISTICS=1)
    • mapped_total – Total amount of memory mapped since initialization (only if ENABLE_STATISTICS=1)
    • unmapped_total – Total amount of memory unmapped since initialization (only if ENABLE_STATISTICS=1)

    Layout

    
     struct rpmalloc_global_statistics_t {
         size_t mapped;
         size_t mapped_peak;
         size_t cached;
         size_t huge_alloc;
         size_t huge_alloc_peak;
         size_t mapped_total;
         size_t unmapped_total;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MAPPED, MAPPED_PEAK, CACHED, HUGE_ALLOC, HUGE_ALLOC_PEAK, MAPPED_TOTAL, UNMAPPED_TOTAL

        The struct member offsets.
    • Constructor Detail

      • RPmallocGlobalStatistics

        public RPmallocGlobalStatistics​(java.nio.ByteBuffer container)
        Creates a RPmallocGlobalStatistics instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.