Package org.lwjgl.system.rpmalloc
Class RPmallocGlobalStatistics
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.system.rpmalloc.RPmallocGlobalStatistics
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class RPmallocGlobalStatistics extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct rpmalloc_global_statistics_t { size_tmapped(); size_tmapped_peak(); size_tcached(); size_thuge_alloc(); size_thuge_alloc_peak(); size_tmapped_total(); size_tunmapped_total(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRPmallocGlobalStatistics.BufferAn array ofRPmallocGlobalStatisticsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCACHED
HUGE_ALLOC
HUGE_ALLOC_PEAK
MAPPED
MAPPED_PEAK
MAPPED_TOTALThe struct member offsets.static intSIZEOFThe struct size in bytes.static intUNMAPPED_TOTALThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description RPmallocGlobalStatistics(java.nio.ByteBuffer container)Creates aRPmallocGlobalStatisticsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longcached()Current amount of memory in global caches for small and medium sizes (<32KiB)static RPmallocGlobalStatisticscalloc()Returns a newRPmallocGlobalStatisticsinstance allocated withmemCalloc.static RPmallocGlobalStatistics.Buffercalloc(int capacity)Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withmemCalloc.static RPmallocGlobalStatistics.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRPmallocGlobalStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RPmallocGlobalStatisticscalloc(org.lwjgl.system.MemoryStack stack)Returns a newRPmallocGlobalStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static RPmallocGlobalStatisticscallocStack()Deprecated.static RPmallocGlobalStatistics.BuffercallocStack(int capacity)Deprecated.static RPmallocGlobalStatistics.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static RPmallocGlobalStatisticscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static RPmallocGlobalStatisticscreate()Returns a newRPmallocGlobalStatisticsinstance allocated withBufferUtils.static RPmallocGlobalStatistics.Buffercreate(int capacity)Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withBufferUtils.static RPmallocGlobalStatisticscreate(long address)Returns a newRPmallocGlobalStatisticsinstance for the specified memory address.static RPmallocGlobalStatistics.Buffercreate(long address, int capacity)Create aRPmallocGlobalStatistics.Bufferinstance at the specified memory.static RPmallocGlobalStatisticscreateSafe(long address)static RPmallocGlobalStatistics.BuffercreateSafe(long address, int capacity)longhuge_alloc()Current amount of memory allocated in huge allocations, i.e larger thanLARGE_SIZE_LIMITwhich is 2MiB by default (only ifENABLE_STATISTICS=1)longhuge_alloc_peak()Peak amount of memory allocated in huge allocations, i.e larger thanLARGE_SIZE_LIMITwhich is 2MiB by default (only ifENABLE_STATISTICS=1)static RPmallocGlobalStatisticsmalloc()Returns a newRPmallocGlobalStatisticsinstance allocated withmemAlloc.static RPmallocGlobalStatistics.Buffermalloc(int capacity)Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withmemAlloc.static RPmallocGlobalStatistics.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newRPmallocGlobalStatistics.Bufferinstance allocated on the specifiedMemoryStack.static RPmallocGlobalStatisticsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newRPmallocGlobalStatisticsinstance allocated on the specifiedMemoryStack.static RPmallocGlobalStatisticsmallocStack()Deprecated.static RPmallocGlobalStatistics.BuffermallocStack(int capacity)Deprecated.static RPmallocGlobalStatistics.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static RPmallocGlobalStatisticsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longmapped()Current amount of virtual memory mapped, all of which might not have been committed (only ifENABLE_STATISTICS=1)longmapped_peak()Peak amount of virtual memory mapped, all of which might not have been committed (only ifENABLE_STATISTICS=1)longmapped_total()Total amount of memory mapped since initialization (only ifENABLE_STATISTICS=1)static longncached(long struct)Unsafe version ofcached().static longnhuge_alloc(long struct)Unsafe version ofhuge_alloc().static longnhuge_alloc_peak(long struct)Unsafe version ofhuge_alloc_peak().static longnmapped(long struct)Unsafe version ofmapped().static longnmapped_peak(long struct)Unsafe version ofmapped_peak().static longnmapped_total(long struct)Unsafe version ofmapped_total().static longnunmapped_total(long struct)Unsafe version ofunmapped_total().intsizeof()longunmapped_total()Total amount of memory unmapped since initialization (only ifENABLE_STATISTICS=1)
-
-
-
Constructor Detail
-
RPmallocGlobalStatistics
public RPmallocGlobalStatistics(java.nio.ByteBuffer container)
Creates aRPmallocGlobalStatisticsinstance 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
-
mapped
public long mapped()
Current amount of virtual memory mapped, all of which might not have been committed (only ifENABLE_STATISTICS=1)
-
mapped_peak
public long mapped_peak()
Peak amount of virtual memory mapped, all of which might not have been committed (only ifENABLE_STATISTICS=1)
-
cached
public long cached()
Current amount of memory in global caches for small and medium sizes (<32KiB)
-
huge_alloc
public long huge_alloc()
Current amount of memory allocated in huge allocations, i.e larger thanLARGE_SIZE_LIMITwhich is 2MiB by default (only ifENABLE_STATISTICS=1)
-
huge_alloc_peak
public long huge_alloc_peak()
Peak amount of memory allocated in huge allocations, i.e larger thanLARGE_SIZE_LIMITwhich is 2MiB by default (only ifENABLE_STATISTICS=1)
-
mapped_total
public long mapped_total()
Total amount of memory mapped since initialization (only ifENABLE_STATISTICS=1)
-
unmapped_total
public long unmapped_total()
Total amount of memory unmapped since initialization (only ifENABLE_STATISTICS=1)
-
malloc
public static RPmallocGlobalStatistics malloc()
Returns a newRPmallocGlobalStatisticsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static RPmallocGlobalStatistics calloc()
Returns a newRPmallocGlobalStatisticsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static RPmallocGlobalStatistics create()
Returns a newRPmallocGlobalStatisticsinstance allocated withBufferUtils.
-
create
public static RPmallocGlobalStatistics create(long address)
Returns a newRPmallocGlobalStatisticsinstance for the specified memory address.
-
createSafe
@Nullable public static RPmallocGlobalStatistics createSafe(long address)
-
malloc
public static RPmallocGlobalStatistics.Buffer malloc(int capacity)
Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static RPmallocGlobalStatistics.Buffer calloc(int capacity)
Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static RPmallocGlobalStatistics.Buffer create(int capacity)
Returns a newRPmallocGlobalStatistics.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static RPmallocGlobalStatistics.Buffer create(long address, int capacity)
Create aRPmallocGlobalStatistics.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static RPmallocGlobalStatistics.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static RPmallocGlobalStatistics mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RPmallocGlobalStatistics callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RPmallocGlobalStatistics mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static RPmallocGlobalStatistics callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static RPmallocGlobalStatistics.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static RPmallocGlobalStatistics.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static RPmallocGlobalStatistics.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static RPmallocGlobalStatistics.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static RPmallocGlobalStatistics malloc(org.lwjgl.system.MemoryStack stack)
Returns a newRPmallocGlobalStatisticsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static RPmallocGlobalStatistics calloc(org.lwjgl.system.MemoryStack stack)
Returns a newRPmallocGlobalStatisticsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static RPmallocGlobalStatistics.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRPmallocGlobalStatistics.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static RPmallocGlobalStatistics.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newRPmallocGlobalStatistics.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmapped
public static long nmapped(long struct)
Unsafe version ofmapped().
-
nmapped_peak
public static long nmapped_peak(long struct)
Unsafe version ofmapped_peak().
-
ncached
public static long ncached(long struct)
Unsafe version ofcached().
-
nhuge_alloc
public static long nhuge_alloc(long struct)
Unsafe version ofhuge_alloc().
-
nhuge_alloc_peak
public static long nhuge_alloc_peak(long struct)
Unsafe version ofhuge_alloc_peak().
-
nmapped_total
public static long nmapped_total(long struct)
Unsafe version ofmapped_total().
-
nunmapped_total
public static long nunmapped_total(long struct)
Unsafe version ofunmapped_total().
-
-