Package org.lwjgl.system.rpmalloc
Class RPmallocThreadStatistics.span_use
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.rpmalloc.RPmallocThreadStatistics.span_use
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
- Enclosing class:
- RPmallocThreadStatistics
public static class RPmallocThreadStatistics.span_use extends org.lwjgl.system.StructLayout
struct { size_tcurrent(); size_tpeak(); size_tto_global(); size_tfrom_global(); size_tto_cache(); size_tfrom_cache(); size_tto_reserved(); size_tfrom_reserved(); size_tmap_calls(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRPmallocThreadStatistics.span_use.BufferAn array ofRPmallocThreadStatistics.span_usestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCURRENT
FROM_CACHE
FROM_GLOBAL
FROM_RESERVED
MAP_CALLS
PEAKThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTO_CACHE
TO_GLOBAL
TO_RESERVEDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description span_use(java.nio.ByteBuffer container)Creates aspan_useinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RPmallocThreadStatistics.span_usecreate(long address)Returns a newspan_useinstance for the specified memory address.static RPmallocThreadStatistics.span_use.Buffercreate(long address, int capacity)Create aRPmallocThreadStatistics.span_use.Bufferinstance at the specified memory.static RPmallocThreadStatistics.span_usecreateSafe(long address)static RPmallocThreadStatistics.span_use.BuffercreateSafe(long address, int capacity)longcurrent()Currently used number of spanslongfrom_cache()Number of spans transitioned from thread cachelongfrom_global()Number of spans transitioned from global cachelongfrom_reserved()Number of spans transitioned from reserved statelongmap_calls()Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)static longncurrent(long struct)Unsafe version ofcurrent().static longnfrom_cache(long struct)Unsafe version offrom_cache().static longnfrom_global(long struct)Unsafe version offrom_global().static longnfrom_reserved(long struct)Unsafe version offrom_reserved().static longnmap_calls(long struct)Unsafe version ofmap_calls().static longnpeak(long struct)Unsafe version ofpeak().static longnto_cache(long struct)Unsafe version ofto_cache().static longnto_global(long struct)Unsafe version ofto_global().static longnto_reserved(long struct)Unsafe version ofto_reserved().longpeak()High water mark of spans usedintsizeof()longto_cache()Number of spans transitioned to thread cachelongto_global()Number of spans transitioned to global cachelongto_reserved()Number of spans transitioned to reserved state
-
-
-
Constructor Detail
-
span_use
public span_use(java.nio.ByteBuffer container)
Creates aspan_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
-
current
public long current()
Currently used number of spans
-
peak
public long peak()
High water mark of spans used
-
to_global
public long to_global()
Number of spans transitioned to global cache
-
from_global
public long from_global()
Number of spans transitioned from global cache
-
to_cache
public long to_cache()
Number of spans transitioned to thread cache
-
from_cache
public long from_cache()
Number of spans transitioned from thread cache
-
to_reserved
public long to_reserved()
Number of spans transitioned to reserved state
-
from_reserved
public long 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.span_use create(long address)
Returns a newspan_useinstance for the specified memory address.
-
createSafe
@Nullable public static RPmallocThreadStatistics.span_use createSafe(long address)
-
create
public static RPmallocThreadStatistics.span_use.Buffer create(long address, int capacity)
Create aRPmallocThreadStatistics.span_use.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static RPmallocThreadStatistics.span_use.Buffer createSafe(long address, int capacity)
-
ncurrent
public static long ncurrent(long struct)
Unsafe version ofcurrent().
-
npeak
public static long npeak(long struct)
Unsafe version ofpeak().
-
nto_global
public static long nto_global(long struct)
Unsafe version ofto_global().
-
nfrom_global
public static long nfrom_global(long struct)
Unsafe version offrom_global().
-
nto_cache
public static long nto_cache(long struct)
Unsafe version ofto_cache().
-
nfrom_cache
public static long nfrom_cache(long struct)
Unsafe version offrom_cache().
-
nto_reserved
public static long nto_reserved(long struct)
Unsafe version ofto_reserved().
-
nfrom_reserved
public static long nfrom_reserved(long struct)
Unsafe version offrom_reserved().
-
nmap_calls
public static long nmap_calls(long struct)
Unsafe version ofmap_calls().
-
-