Class RPmallocThreadStatistics

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


    public class RPmallocThreadStatistics
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Member documentation

    • requested – Amount of memory currently requested in allocations (only if ENABLE_STATISTICS=1)
    • allocated – Amount of memory actually allocated in memory blocks (only if ENABLE_STATISTICS=1)
    • active – Current number of bytes available for allocation from active spans
    • sizecache – Current number of bytes available in thread size class caches
    • spancache – Current number of bytes available in thread span caches
    • deferred – Current number of bytes in pending deferred deallocations
    • thread_to_global – Total number of bytes transitioned from thread cache to global cache
    • global_to_thread – Total number of bytes transitioned from global cache to thread cache

    Layout

     struct rpmalloc_thread_statistics_t {
         size_t requested;
         size_t allocated;
         size_t active;
         size_t sizecache;
         size_t spancache;
         size_t deferred;
         size_t thread_to_global;
         size_t global_to_thread;
     }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • RPmallocThreadStatistics

        public RPmallocThreadStatistics(java.nio.ByteBuffer container)
        Creates a RPmallocThreadStatistics 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.