public class RPmallocThreadStatistics
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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)
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];
}| Modifier and Type | Class and Description |
|---|---|
static class |
RPmallocThreadStatistics.Buffer
An array of
RPmallocThreadStatistics structs. |
static class |
RPmallocThreadStatistics.size_use
Member documentation
|
static class |
RPmallocThreadStatistics.span_use
Member documentation
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
GLOBAL_TO_THREAD
The struct member offsets.
|
static int |
SIZE_USE
The struct member offsets.
|
static int |
SIZECACHE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPAN_USE
The struct member offsets.
|
static int |
SPANCACHE
The struct member offsets.
|
static int |
THREAD_TO_GLOBAL
The struct member offsets.
|
| Constructor and Description |
|---|
RPmallocThreadStatistics(java.nio.ByteBuffer container)
Creates a
RPmallocThreadStatistics instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static RPmallocThreadStatistics |
calloc()
Returns a new
RPmallocThreadStatistics instance allocated with memCalloc. |
static RPmallocThreadStatistics.Buffer |
calloc(int capacity)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated with memCalloc. |
static RPmallocThreadStatistics |
callocStack()
Returns a new
RPmallocThreadStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static RPmallocThreadStatistics.Buffer |
callocStack(int capacity)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static RPmallocThreadStatistics.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static RPmallocThreadStatistics |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocThreadStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static RPmallocThreadStatistics |
create()
Returns a new
RPmallocThreadStatistics instance allocated with BufferUtils. |
static RPmallocThreadStatistics.Buffer |
create(int capacity)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated with BufferUtils. |
static RPmallocThreadStatistics |
create(long address)
Returns a new
RPmallocThreadStatistics instance for the specified memory address. |
static RPmallocThreadStatistics.Buffer |
create(long address,
int capacity)
Create a
RPmallocThreadStatistics.Buffer instance at the specified memory. |
static RPmallocThreadStatistics |
createSafe(long address)
|
static RPmallocThreadStatistics.Buffer |
createSafe(long address,
int capacity)
|
long |
global_to_thread()
Returns the value of the
global_to_thread field. |
static RPmallocThreadStatistics |
malloc()
Returns a new
RPmallocThreadStatistics instance allocated with memAlloc. |
static RPmallocThreadStatistics.Buffer |
malloc(int capacity)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated with memAlloc. |
static RPmallocThreadStatistics |
mallocStack()
Returns a new
RPmallocThreadStatistics instance allocated on the thread-local MemoryStack. |
static RPmallocThreadStatistics.Buffer |
mallocStack(int capacity)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated on the thread-local MemoryStack. |
static RPmallocThreadStatistics.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack. |
static RPmallocThreadStatistics |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocThreadStatistics instance allocated on the specified MemoryStack. |
static long |
nglobal_to_thread(long struct)
Unsafe version of
global_to_thread(). |
static RPmallocThreadStatistics.size_use.Buffer |
nsize_use(long struct)
Unsafe version of
size_use(). |
static RPmallocThreadStatistics.size_use |
nsize_use(long struct,
int index)
Unsafe version of
size_use. |
static long |
nsizecache(long struct)
Unsafe version of
sizecache(). |
static RPmallocThreadStatistics.span_use.Buffer |
nspan_use(long struct)
Unsafe version of
span_use(). |
static RPmallocThreadStatistics.span_use |
nspan_use(long struct,
int index)
Unsafe version of
span_use. |
static long |
nspancache(long struct)
Unsafe version of
spancache(). |
static long |
nthread_to_global(long struct)
Unsafe version of
thread_to_global(). |
RPmallocThreadStatistics.size_use.Buffer |
size_use()
Returns a
RPmallocThreadStatistics.size_use.Buffer view of the size_use field. |
RPmallocThreadStatistics.size_use |
size_use(int index)
Returns a
RPmallocThreadStatistics.size_use view of the struct at the specified index of the size_use field. |
long |
sizecache()
Returns the value of the
sizecache field. |
int |
sizeof() |
RPmallocThreadStatistics.span_use.Buffer |
span_use()
Returns a
RPmallocThreadStatistics.span_use.Buffer view of the span_use field. |
RPmallocThreadStatistics.span_use |
span_use(int index)
Returns a
RPmallocThreadStatistics.span_use view of the struct at the specified index of the span_use field. |
long |
spancache()
Returns the value of the
spancache field. |
long |
thread_to_global()
Returns the value of the
thread_to_global field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SIZECACHE
public static final int SPANCACHE
public static final int THREAD_TO_GLOBAL
public static final int GLOBAL_TO_THREAD
public static final int SPAN_USE
public static final int SIZE_USE
public RPmallocThreadStatistics(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long sizecache()
sizecache field.public long spancache()
spancache field.public long thread_to_global()
thread_to_global field.public long global_to_thread()
global_to_thread field.public RPmallocThreadStatistics.span_use.Buffer span_use()
RPmallocThreadStatistics.span_use.Buffer view of the span_use field.public RPmallocThreadStatistics.span_use span_use(int index)
RPmallocThreadStatistics.span_use view of the struct at the specified index of the span_use field.public RPmallocThreadStatistics.size_use.Buffer size_use()
RPmallocThreadStatistics.size_use.Buffer view of the size_use field.public RPmallocThreadStatistics.size_use size_use(int index)
RPmallocThreadStatistics.size_use view of the struct at the specified index of the size_use field.public static RPmallocThreadStatistics malloc()
RPmallocThreadStatistics instance allocated with memAlloc. The instance must be explicitly freed.public static RPmallocThreadStatistics calloc()
RPmallocThreadStatistics instance allocated with memCalloc. The instance must be explicitly freed.public static RPmallocThreadStatistics create()
RPmallocThreadStatistics instance allocated with BufferUtils.public static RPmallocThreadStatistics create(long address)
RPmallocThreadStatistics instance for the specified memory address.@Nullable public static RPmallocThreadStatistics createSafe(long address)
public static RPmallocThreadStatistics.Buffer malloc(int capacity)
RPmallocThreadStatistics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer calloc(int capacity)
RPmallocThreadStatistics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer create(int capacity)
RPmallocThreadStatistics.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer create(long address, int capacity)
RPmallocThreadStatistics.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static RPmallocThreadStatistics.Buffer createSafe(long address, int capacity)
public static RPmallocThreadStatistics mallocStack()
RPmallocThreadStatistics instance allocated on the thread-local MemoryStack.public static RPmallocThreadStatistics callocStack()
RPmallocThreadStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static RPmallocThreadStatistics mallocStack(org.lwjgl.system.MemoryStack stack)
RPmallocThreadStatistics instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static RPmallocThreadStatistics callocStack(org.lwjgl.system.MemoryStack stack)
RPmallocThreadStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static RPmallocThreadStatistics.Buffer mallocStack(int capacity)
RPmallocThreadStatistics.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer callocStack(int capacity)
RPmallocThreadStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static RPmallocThreadStatistics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
RPmallocThreadStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nsizecache(long struct)
sizecache().public static long nspancache(long struct)
spancache().public static long nthread_to_global(long struct)
thread_to_global().public static long nglobal_to_thread(long struct)
global_to_thread().public static RPmallocThreadStatistics.span_use.Buffer nspan_use(long struct)
span_use().public static RPmallocThreadStatistics.span_use nspan_use(long struct, int index)
span_use.public static RPmallocThreadStatistics.size_use.Buffer nsize_use(long struct)
size_use().public static RPmallocThreadStatistics.size_use nsize_use(long struct, int index)
size_use.Copyright LWJGL. All Rights Reserved. License terms.