Package org.lwjgl.system.rpmalloc
Class RPmallocThreadStatistics.span_use
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RPmallocThreadStatistics.span_use>
org.lwjgl.system.rpmalloc.RPmallocThreadStatistics.span_use
- All Implemented Interfaces:
Pointer
- Enclosing class:
RPmallocThreadStatistics
public static class RPmallocThreadStatistics.span_use
extends Struct<RPmallocThreadStatistics.span_use>
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
Modifier and TypeClassDescriptionstatic class
An array ofRPmallocThreadStatistics.span_use
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionspan_use
(ByteBuffer container) Creates aspan_use
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(long address) Returns a newspan_use
instance for the specified memory address.create
(long address, int capacity) Create aRPmallocThreadStatistics.span_use.Buffer
instance at the specified memory.createSafe
(long address) createSafe
(long address, int capacity) long
current()
Currently used number of spanslong
Number of spans transitioned from thread cachelong
Number of spans transitioned from global cachelong
Number of spans transitioned from reserved statelong
Number of raw memory map calls (not hitting the reserve spans but resulting in actual OS mmap calls)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()
High water mark of spans usedint
sizeof()
Returnssizeof(struct)
.long
to_cache()
Number of spans transitioned to thread cachelong
Number of spans transitioned to global cachelong
Number of spans transitioned to reserved stateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CURRENT
public static final int CURRENTThe struct member offsets. -
PEAK
public static final int PEAKThe struct member offsets. -
TO_GLOBAL
public static final int TO_GLOBALThe struct member offsets. -
FROM_GLOBAL
public static final int FROM_GLOBALThe struct member offsets. -
TO_CACHE
public static final int TO_CACHEThe struct member offsets. -
FROM_CACHE
public static final int FROM_CACHEThe struct member offsets. -
TO_RESERVED
public static final int TO_RESERVEDThe struct member offsets. -
FROM_RESERVED
public static final int FROM_RESERVEDThe struct member offsets. -
MAP_CALLS
public static final int MAP_CALLSThe struct member offsets.
-
-
Constructor Details
-
span_use
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<RPmallocThreadStatistics.span_use>
-
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
Returns a newspan_use
instance for the specified memory address. -
createSafe
-
create
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()
.
-