Package org.lwjgl.system.rpmalloc
Class RPmallocThreadStatistics.size_use
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.rpmalloc.RPmallocThreadStatistics.size_use
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
- Enclosing class:
- RPmallocThreadStatistics
public static class RPmallocThreadStatistics.size_use extends org.lwjgl.system.Struct
Member documentation
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)
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; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RPmallocThreadStatistics.size_use.Buffer
An array ofRPmallocThreadStatistics.size_use
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
ALLOC_CURRENT
ALLOC_PEAK
ALLOC_TOTAL
FREE_TOTAL
MAP_CALLSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SPANS_FROM_CACHE
SPANS_FROM_RESERVED
SPANS_TO_CACHEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description size_use(java.nio.ByteBuffer container)
Creates asize_use
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
alloc_current()
Returns the value of thealloc_current
field.long
alloc_peak()
Returns the value of thealloc_peak
field.long
alloc_total()
Returns the value of thealloc_total
field.static RPmallocThreadStatistics.size_use
create(long address)
Returns a newsize_use
instance for the specified memory address.static RPmallocThreadStatistics.size_use.Buffer
create(long address, int capacity)
Create aRPmallocThreadStatistics.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 thefree_total
field.long
map_calls()
Returns the value of themap_calls
field.static long
nalloc_current(long struct)
Unsafe version ofalloc_current()
.static long
nalloc_peak(long struct)
Unsafe version ofalloc_peak()
.static long
nalloc_total(long struct)
Unsafe version ofalloc_total()
.static long
nfree_total(long struct)
Unsafe version offree_total()
.static long
nmap_calls(long struct)
Unsafe version ofmap_calls()
.static long
nspans_from_cache(long struct)
Unsafe version ofspans_from_cache()
.static long
nspans_from_reserved(long struct)
Unsafe version ofspans_from_reserved()
.static long
nspans_to_cache(long struct)
Unsafe version ofspans_to_cache()
.int
sizeof()
long
spans_from_cache()
Returns the value of thespans_from_cache
field.long
spans_from_reserved()
Returns the value of thespans_from_reserved
field.long
spans_to_cache()
Returns the value of thespans_to_cache
field.
-
-
-
Constructor Detail
-
size_use
public size_use(java.nio.ByteBuffer container)
Creates asize_use
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
alloc_current
public long alloc_current()
Returns the value of thealloc_current
field.
-
alloc_peak
public long alloc_peak()
Returns the value of thealloc_peak
field.
-
alloc_total
public long alloc_total()
Returns the value of thealloc_total
field.
-
free_total
public long free_total()
Returns the value of thefree_total
field.
-
spans_to_cache
public long spans_to_cache()
Returns the value of thespans_to_cache
field.
-
spans_from_cache
public long spans_from_cache()
Returns the value of thespans_from_cache
field.
-
spans_from_reserved
public long spans_from_reserved()
Returns the value of thespans_from_reserved
field.
-
map_calls
public long map_calls()
Returns the value of themap_calls
field.
-
create
public static RPmallocThreadStatistics.size_use create(long address)
Returns a newsize_use
instance for the specified memory address.
-
createSafe
@Nullable public static RPmallocThreadStatistics.size_use createSafe(long address)
-
create
public static RPmallocThreadStatistics.size_use.Buffer create(long address, int capacity)
Create aRPmallocThreadStatistics.size_use.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static RPmallocThreadStatistics.size_use.Buffer createSafe(long address, int capacity)
-
nalloc_current
public static long nalloc_current(long struct)
Unsafe version ofalloc_current()
.
-
nalloc_peak
public static long nalloc_peak(long struct)
Unsafe version ofalloc_peak()
.
-
nalloc_total
public static long nalloc_total(long struct)
Unsafe version ofalloc_total()
.
-
nfree_total
public static long nfree_total(long struct)
Unsafe version offree_total()
.
-
nspans_to_cache
public static long nspans_to_cache(long struct)
Unsafe version ofspans_to_cache()
.
-
nspans_from_cache
public static long nspans_from_cache(long struct)
Unsafe version ofspans_from_cache()
.
-
nspans_from_reserved
public static long nspans_from_reserved(long struct)
Unsafe version ofspans_from_reserved()
.
-
nmap_calls
public static long nmap_calls(long struct)
Unsafe version ofmap_calls()
.
-
-