Top Description Inners Fields Constructors Methods
org.lwjgl.system.rpmalloc

public Class RPmallocThreadStatistics

extends Struct<RPmallocThreadStatistics>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct rpmalloc_thread_statistics_t
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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[64];
    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];
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
RPmallocThreadStatistics.size_use

Layout


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;
}
public static class
RPmallocThreadStatistics.span_use

Layout


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;
}

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
GLOBAL_TO_THREAD

The struct member offsets.

public static final int
SIZE_USE

The struct member offsets.

public static final int
SIZECACHE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPAN_USE

The struct member offsets.

public static final int
SPANCACHE

The struct member offsets.

public static final int
THREAD_TO_GLOBAL

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
RPmallocThreadStatistics(long address, ByteBuffer container)

public
RPmallocThreadStatistics(ByteBuffer container)

Creates a RPmallocThreadStatistics instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static RPmallocThreadStatistics
calloc()

Returns a new RPmallocThreadStatistics instance allocated with memCalloc.

public static RPmallocThreadStatistics.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new RPmallocThreadStatistics.Buffer instance allocated with memCalloc.

public static RPmallocThreadStatistics
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new RPmallocThreadStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static RPmallocThreadStatistics.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static RPmallocThreadStatistics
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected RPmallocThreadStatistics
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static RPmallocThreadStatistics
create()

Returns a new RPmallocThreadStatistics instance allocated with BufferUtils.

public static RPmallocThreadStatistics
create(long address)

Returns a new RPmallocThreadStatistics instance for the specified memory address.

public static RPmallocThreadStatistics.Buffer
create(int
the buffer capacity
capacity
)

Returns a new RPmallocThreadStatistics.Buffer instance allocated with BufferUtils.

public static RPmallocThreadStatistics.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a RPmallocThreadStatistics.Buffer instance at the specified memory.

public static RPmallocThreadStatistics
createSafe(long address)

Like create, but returns null if address is NULL.

public static RPmallocThreadStatistics.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
global_to_thread()

Total number of bytes transitioned from global cache to thread cache (only if ENABLE_STATISTICS=1)

public static RPmallocThreadStatistics
malloc()

Returns a new RPmallocThreadStatistics instance allocated with memAlloc.

public static RPmallocThreadStatistics.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new RPmallocThreadStatistics.Buffer instance allocated with memAlloc.

public static RPmallocThreadStatistics
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new RPmallocThreadStatistics instance allocated on the specified MemoryStack.

public static RPmallocThreadStatistics.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack.

public static RPmallocThreadStatistics
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static RPmallocThreadStatistics.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static long
nglobal_to_thread(long struct)

Unsafe version of global_to_thread.

public static RPmallocThreadStatistics.size_use.Buffer
nsize_use(long struct)

Unsafe version of size_use.

public static RPmallocThreadStatistics.size_use
nsize_use(long struct, int index)

Unsafe version of size_use.

public static long
nsizecache(long struct)

Unsafe version of sizecache.

public static RPmallocThreadStatistics.span_use.Buffer
nspan_use(long struct)

Unsafe version of span_use.

public static RPmallocThreadStatistics.span_use
nspan_use(long struct, int index)

Unsafe version of span_use.

public static long
nspancache(long struct)

Unsafe version of spancache.

public static long
nthread_to_global(long struct)

Unsafe version of thread_to_global.

public RPmallocThreadStatistics.size_use.Buffer
size_use()

Per size class statistics (only if ENABLE_STATISTICS=1)

public RPmallocThreadStatistics.size_use
size_use(int index)

Per size class statistics (only if ENABLE_STATISTICS=1)

public long
sizecache()

Current number of bytes available in thread size class caches for small and medium sizes (<32KiB)

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public RPmallocThreadStatistics.span_use.Buffer
span_use()

Per span count statistics (only if ENABLE_STATISTICS=1)

public RPmallocThreadStatistics.span_use
span_use(int index)

Per span count statistics (only if ENABLE_STATISTICS=1)

public long
spancache()

Current number of bytes available in thread span caches for small and medium sizes (<32KiB)

public long
thread_to_global()

Total number of bytes transitioned from thread cache to global cache (only if ENABLE_STATISTICS=1)

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate