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.Struct
Member documentation
current
– Currently used number of spanspeak
– High water mark of spans usedto_global
– Number of spans transitioned to global cachefrom_global
– Number of spans transitioned from global cacheto_cache
– Number of spans transitioned to thread cachefrom_cache
– Number of spans transitioned from thread cacheto_reserved
– Number of spans transitioned to reserved statefrom_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 current; size_t peak; size_t to_global; size_t from_global; size_t to_cache; size_t from_cache; size_t to_reserved; size_t from_reserved; size_t map_calls; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RPmallocThreadStatistics.span_use.Buffer
An array ofRPmallocThreadStatistics.span_use
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CURRENT
FROM_CACHE
FROM_GLOBAL
FROM_RESERVED
MAP_CALLS
PEAKThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TO_CACHE
TO_GLOBAL
TO_RESERVEDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description span_use(java.nio.ByteBuffer container)
Creates aspan_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 static RPmallocThreadStatistics.span_use
create(long address)
Returns a newspan_use
instance for the specified memory address.static RPmallocThreadStatistics.span_use.Buffer
create(long address, int capacity)
Create aRPmallocThreadStatistics.span_use.Buffer
instance at the specified memory.static RPmallocThreadStatistics.span_use
createSafe(long address)
static RPmallocThreadStatistics.span_use.Buffer
createSafe(long address, int capacity)
long
current()
Returns the value of thecurrent
field.long
from_cache()
Returns the value of thefrom_cache
field.long
from_global()
Returns the value of thefrom_global
field.long
from_reserved()
Returns the value of thefrom_reserved
field.long
map_calls()
Returns the value of themap_calls
field.static long
ncurrent(long struct)
Unsafe version ofcurrent()
.static long
nfrom_cache(long struct)
Unsafe version offrom_cache()
.static long
nfrom_global(long struct)
Unsafe version offrom_global()
.static long
nfrom_reserved(long struct)
Unsafe version offrom_reserved()
.static long
nmap_calls(long struct)
Unsafe version ofmap_calls()
.static long
npeak(long struct)
Unsafe version ofpeak()
.static long
nto_cache(long struct)
Unsafe version ofto_cache()
.static long
nto_global(long struct)
Unsafe version ofto_global()
.static long
nto_reserved(long struct)
Unsafe version ofto_reserved()
.long
peak()
Returns the value of thepeak
field.int
sizeof()
long
to_cache()
Returns the value of theto_cache
field.long
to_global()
Returns the value of theto_global
field.long
to_reserved()
Returns the value of theto_reserved
field.
-
-
-
Constructor Detail
-
span_use
public span_use(java.nio.ByteBuffer container)
Creates aspan_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
-
current
public long current()
Returns the value of thecurrent
field.
-
peak
public long peak()
Returns the value of thepeak
field.
-
to_global
public long to_global()
Returns the value of theto_global
field.
-
from_global
public long from_global()
Returns the value of thefrom_global
field.
-
to_cache
public long to_cache()
Returns the value of theto_cache
field.
-
from_cache
public long from_cache()
Returns the value of thefrom_cache
field.
-
to_reserved
public long to_reserved()
Returns the value of theto_reserved
field.
-
from_reserved
public long from_reserved()
Returns the value of thefrom_reserved
field.
-
map_calls
public long map_calls()
Returns the value of themap_calls
field.
-
create
public static RPmallocThreadStatistics.span_use create(long address)
Returns a newspan_use
instance 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.Buffer
instance 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()
.
-
-