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.StructLayout
struct { size_talloc_current(); size_talloc_peak(); size_talloc_total(); size_tfree_total(); size_tspans_to_cache(); size_tspans_from_cache(); size_tspans_from_reserved(); size_tmap_calls(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRPmallocThreadStatistics.size_use.BufferAn array ofRPmallocThreadStatistics.size_usestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intALLOC_CURRENT
ALLOC_PEAK
ALLOC_TOTAL
FREE_TOTAL
MAP_CALLSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPANS_FROM_CACHE
SPANS_FROM_RESERVED
SPANS_TO_CACHEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description size_use(java.nio.ByteBuffer container)Creates asize_useinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longalloc_current()Current number of allocationslongalloc_peak()Peak number of allocationslongalloc_total()Total number of allocationsstatic RPmallocThreadStatistics.size_usecreate(long address)Returns a newsize_useinstance for the specified memory address.static RPmallocThreadStatistics.size_use.Buffercreate(long address, int capacity)Create aRPmallocThreadStatistics.size_use.Bufferinstance at the specified memory.static RPmallocThreadStatistics.size_usecreateSafe(long address)static RPmallocThreadStatistics.size_use.BuffercreateSafe(long address, int capacity)longfree_total()Total number of freeslongmap_calls()Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)static longnalloc_current(long struct)Unsafe version ofalloc_current().static longnalloc_peak(long struct)Unsafe version ofalloc_peak().static longnalloc_total(long struct)Unsafe version ofalloc_total().static longnfree_total(long struct)Unsafe version offree_total().static longnmap_calls(long struct)Unsafe version ofmap_calls().static longnspans_from_cache(long struct)Unsafe version ofspans_from_cache().static longnspans_from_reserved(long struct)Unsafe version ofspans_from_reserved().static longnspans_to_cache(long struct)Unsafe version ofspans_to_cache().intsizeof()longspans_from_cache()Number of spans transitioned from cachelongspans_from_reserved()Number of spans transitioned from reserved statelongspans_to_cache()Number of spans transitioned to cache
-
-
-
Constructor Detail
-
size_use
public size_use(java.nio.ByteBuffer container)
Creates asize_useinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
alloc_current
public long alloc_current()
Current number of allocations
-
alloc_peak
public long alloc_peak()
Peak number of allocations
-
alloc_total
public long alloc_total()
Total number of allocations
-
free_total
public long free_total()
Total number of frees
-
spans_to_cache
public long spans_to_cache()
Number of spans transitioned to cache
-
spans_from_cache
public long spans_from_cache()
Number of spans transitioned from cache
-
spans_from_reserved
public long spans_from_reserved()
Number of spans transitioned from reserved state
-
map_calls
public long map_calls()
Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)
-
create
public static RPmallocThreadStatistics.size_use create(long address)
Returns a newsize_useinstance 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.Bufferinstance 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().
-
-