public class RPmallocGlobalStatistics
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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)
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
RPmallocGlobalStatistics.Buffer
An array of
RPmallocGlobalStatistics structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CACHED
The struct member offsets.
|
static int |
HUGE_ALLOC
The struct member offsets.
|
static int |
HUGE_ALLOC_PEAK
The struct member offsets.
|
static int |
MAPPED
The struct member offsets.
|
static int |
MAPPED_PEAK
The struct member offsets.
|
static int |
MAPPED_TOTAL
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
UNMAPPED_TOTAL
The struct member offsets.
|
| Constructor and Description |
|---|
RPmallocGlobalStatistics(java.nio.ByteBuffer container)
Creates a
RPmallocGlobalStatistics instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
cached()
Returns the value of the
cached field. |
static RPmallocGlobalStatistics |
calloc()
Returns a new
RPmallocGlobalStatistics instance allocated with memCalloc. |
static RPmallocGlobalStatistics.Buffer |
calloc(int capacity)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated with memCalloc. |
static RPmallocGlobalStatistics |
callocStack()
Returns a new
RPmallocGlobalStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static RPmallocGlobalStatistics.Buffer |
callocStack(int capacity)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static RPmallocGlobalStatistics.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static RPmallocGlobalStatistics |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocGlobalStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static RPmallocGlobalStatistics |
create()
Returns a new
RPmallocGlobalStatistics instance allocated with BufferUtils. |
static RPmallocGlobalStatistics.Buffer |
create(int capacity)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated with BufferUtils. |
static RPmallocGlobalStatistics |
create(long address)
Returns a new
RPmallocGlobalStatistics instance for the specified memory address. |
static RPmallocGlobalStatistics.Buffer |
create(long address,
int capacity)
Create a
RPmallocGlobalStatistics.Buffer instance at the specified memory. |
static RPmallocGlobalStatistics |
createSafe(long address)
|
static RPmallocGlobalStatistics.Buffer |
createSafe(long address,
int capacity)
|
long |
huge_alloc_peak()
Returns the value of the
huge_alloc_peak field. |
long |
huge_alloc()
Returns the value of the
huge_alloc field. |
static RPmallocGlobalStatistics |
malloc()
Returns a new
RPmallocGlobalStatistics instance allocated with memAlloc. |
static RPmallocGlobalStatistics.Buffer |
malloc(int capacity)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated with memAlloc. |
static RPmallocGlobalStatistics |
mallocStack()
Returns a new
RPmallocGlobalStatistics instance allocated on the thread-local MemoryStack. |
static RPmallocGlobalStatistics.Buffer |
mallocStack(int capacity)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated on the thread-local MemoryStack. |
static RPmallocGlobalStatistics.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocGlobalStatistics.Buffer instance allocated on the specified MemoryStack. |
static RPmallocGlobalStatistics |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
RPmallocGlobalStatistics instance allocated on the specified MemoryStack. |
long |
mapped_peak()
Returns the value of the
mapped_peak field. |
long |
mapped_total()
Returns the value of the
mapped_total field. |
long |
mapped()
Returns the value of the
mapped field. |
static long |
ncached(long struct)
Unsafe version of
cached(). |
static long |
nhuge_alloc_peak(long struct)
Unsafe version of
huge_alloc_peak(). |
static long |
nhuge_alloc(long struct)
Unsafe version of
huge_alloc(). |
static long |
nmapped_peak(long struct)
Unsafe version of
mapped_peak(). |
static long |
nmapped_total(long struct)
Unsafe version of
mapped_total(). |
static long |
nmapped(long struct)
Unsafe version of
mapped(). |
static long |
nunmapped_total(long struct)
Unsafe version of
unmapped_total(). |
int |
sizeof() |
long |
unmapped_total()
Returns the value of the
unmapped_total field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MAPPED
public static final int MAPPED_PEAK
public static final int CACHED
public static final int HUGE_ALLOC
public static final int HUGE_ALLOC_PEAK
public static final int MAPPED_TOTAL
public static final int UNMAPPED_TOTAL
public RPmallocGlobalStatistics(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long mapped()
mapped field.public long mapped_peak()
mapped_peak field.public long cached()
cached field.public long huge_alloc()
huge_alloc field.public long huge_alloc_peak()
huge_alloc_peak field.public long mapped_total()
mapped_total field.public long unmapped_total()
unmapped_total field.public static RPmallocGlobalStatistics malloc()
RPmallocGlobalStatistics instance allocated with memAlloc. The instance must be explicitly freed.public static RPmallocGlobalStatistics calloc()
RPmallocGlobalStatistics instance allocated with memCalloc. The instance must be explicitly freed.public static RPmallocGlobalStatistics create()
RPmallocGlobalStatistics instance allocated with BufferUtils.public static RPmallocGlobalStatistics create(long address)
RPmallocGlobalStatistics instance for the specified memory address.@Nullable public static RPmallocGlobalStatistics createSafe(long address)
public static RPmallocGlobalStatistics.Buffer malloc(int capacity)
RPmallocGlobalStatistics.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer calloc(int capacity)
RPmallocGlobalStatistics.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer create(int capacity)
RPmallocGlobalStatistics.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer create(long address, int capacity)
RPmallocGlobalStatistics.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static RPmallocGlobalStatistics.Buffer createSafe(long address, int capacity)
public static RPmallocGlobalStatistics mallocStack()
RPmallocGlobalStatistics instance allocated on the thread-local MemoryStack.public static RPmallocGlobalStatistics callocStack()
RPmallocGlobalStatistics instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static RPmallocGlobalStatistics mallocStack(org.lwjgl.system.MemoryStack stack)
RPmallocGlobalStatistics instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static RPmallocGlobalStatistics callocStack(org.lwjgl.system.MemoryStack stack)
RPmallocGlobalStatistics instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static RPmallocGlobalStatistics.Buffer mallocStack(int capacity)
RPmallocGlobalStatistics.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer callocStack(int capacity)
RPmallocGlobalStatistics.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
RPmallocGlobalStatistics.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static RPmallocGlobalStatistics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
RPmallocGlobalStatistics.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 nmapped(long struct)
mapped().public static long nmapped_peak(long struct)
mapped_peak().public static long ncached(long struct)
cached().public static long nhuge_alloc(long struct)
huge_alloc().public static long nhuge_alloc_peak(long struct)
huge_alloc_peak().public static long nmapped_total(long struct)
mapped_total().public static long nunmapped_total(long struct)
unmapped_total().Copyright LWJGL. All Rights Reserved. License terms.