public static class RPmallocThreadStatistics.size_use
extends org.lwjgl.system.Struct
alloc_current – Current number of allocationsalloc_peak – Peak number of allocationsalloc_total – Total number of allocationsfree_total – Total number of freesspans_to_cache – Number of spans transitioned to cachespans_from_cache – Number of spans transitioned from cachespans_from_reserved – Number of spans transitioned from reserved statemap_calls – Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
RPmallocThreadStatistics.size_use.Buffer
An array of
RPmallocThreadStatistics.size_use structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ALLOC_CURRENT
The struct member offsets.
|
static int |
ALLOC_PEAK
The struct member offsets.
|
static int |
ALLOC_TOTAL
The struct member offsets.
|
static int |
FREE_TOTAL
The struct member offsets.
|
static int |
MAP_CALLS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPANS_FROM_CACHE
The struct member offsets.
|
static int |
SPANS_FROM_RESERVED
The struct member offsets.
|
static int |
SPANS_TO_CACHE
The struct member offsets.
|
| Constructor and Description |
|---|
size_use(java.nio.ByteBuffer container)
Creates a
size_use instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
alloc_current()
Returns the value of the
alloc_current field. |
long |
alloc_peak()
Returns the value of the
alloc_peak field. |
long |
alloc_total()
Returns the value of the
alloc_total field. |
static RPmallocThreadStatistics.size_use |
create(long address)
Returns a new
size_use instance for the specified memory address. |
static RPmallocThreadStatistics.size_use.Buffer |
create(long address,
int capacity)
Create a
RPmallocThreadStatistics.size_use.Buffer instance at the specified memory. |
static RPmallocThreadStatistics.size_use |
createSafe(long address)
|
static RPmallocThreadStatistics.size_use.Buffer |
createSafe(long address,
int capacity)
|
long |
free_total()
Returns the value of the
free_total field. |
long |
map_calls()
Returns the value of the
map_calls field. |
static long |
nalloc_current(long struct)
Unsafe version of
alloc_current(). |
static long |
nalloc_peak(long struct)
Unsafe version of
alloc_peak(). |
static long |
nalloc_total(long struct)
Unsafe version of
alloc_total(). |
static long |
nfree_total(long struct)
Unsafe version of
free_total(). |
static long |
nmap_calls(long struct)
Unsafe version of
map_calls(). |
static long |
nspans_from_cache(long struct)
Unsafe version of
spans_from_cache(). |
static long |
nspans_from_reserved(long struct)
Unsafe version of
spans_from_reserved(). |
static long |
nspans_to_cache(long struct)
Unsafe version of
spans_to_cache(). |
int |
sizeof() |
long |
spans_from_cache()
Returns the value of the
spans_from_cache field. |
long |
spans_from_reserved()
Returns the value of the
spans_from_reserved field. |
long |
spans_to_cache()
Returns the value of the
spans_to_cache field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ALLOC_CURRENT
public static final int ALLOC_PEAK
public static final int ALLOC_TOTAL
public static final int FREE_TOTAL
public static final int SPANS_TO_CACHE
public static final int SPANS_FROM_CACHE
public static final int SPANS_FROM_RESERVED
public static final int MAP_CALLS
public size_use(java.nio.ByteBuffer container)
size_use 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 alloc_current()
alloc_current field.public long alloc_peak()
alloc_peak field.public long alloc_total()
alloc_total field.public long free_total()
free_total field.public long spans_to_cache()
spans_to_cache field.public long spans_from_cache()
spans_from_cache field.public long spans_from_reserved()
spans_from_reserved field.public long map_calls()
map_calls field.public static RPmallocThreadStatistics.size_use create(long address)
size_use instance for the specified memory address.@Nullable public static RPmallocThreadStatistics.size_use createSafe(long address)
public static RPmallocThreadStatistics.size_use.Buffer create(long address, int capacity)
RPmallocThreadStatistics.size_use.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static RPmallocThreadStatistics.size_use.Buffer createSafe(long address, int capacity)
public static long nalloc_current(long struct)
alloc_current().public static long nalloc_peak(long struct)
alloc_peak().public static long nalloc_total(long struct)
alloc_total().public static long nfree_total(long struct)
free_total().public static long nspans_to_cache(long struct)
spans_to_cache().public static long nspans_from_cache(long struct)
spans_from_cache().public static long nspans_from_reserved(long struct)
spans_from_reserved().public static long nmap_calls(long struct)
map_calls().Copyright LWJGL. All Rights Reserved. License terms.