Class ecs_world_stats_t.memory
java.lang.Object
com.github.elebras1.flecs.ecs_world_stats_t.memory
- Enclosing class:
ecs_world_stats_t
struct {
ecs_metric_t alloc_count;
ecs_metric_t realloc_count;
ecs_metric_t free_count;
ecs_metric_t outstanding_alloc_count;
ecs_metric_t block_alloc_count;
ecs_metric_t block_free_count;
ecs_metric_t block_outstanding_alloc_count;
ecs_metric_t stack_alloc_count;
ecs_metric_t stack_free_count;
ecs_metric_t stack_outstanding_alloc_count;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentalloc_count(MemorySegment struct) Getter for field:ecs_metric_t alloc_countstatic voidalloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t alloc_countstatic final longOffset for field:ecs_metric_t alloc_countstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentblock_alloc_count(MemorySegment struct) Getter for field:ecs_metric_t block_alloc_countstatic voidblock_alloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t block_alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t block_alloc_countstatic final longOffset for field:ecs_metric_t block_alloc_countstatic MemorySegmentblock_free_count(MemorySegment struct) Getter for field:ecs_metric_t block_free_countstatic voidblock_free_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t block_free_countstatic final GroupLayoutLayout for field:ecs_metric_t block_free_countstatic final longOffset for field:ecs_metric_t block_free_countstatic MemorySegmentGetter for field:ecs_metric_t block_outstanding_alloc_countstatic voidblock_outstanding_alloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t block_outstanding_alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t block_outstanding_alloc_countstatic final longOffset for field:ecs_metric_t block_outstanding_alloc_countstatic MemorySegmentfree_count(MemorySegment struct) Getter for field:ecs_metric_t free_countstatic voidfree_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t free_countstatic final GroupLayoutLayout for field:ecs_metric_t free_countstatic final longOffset for field:ecs_metric_t free_countstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentoutstanding_alloc_count(MemorySegment struct) Getter for field:ecs_metric_t outstanding_alloc_countstatic voidoutstanding_alloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t outstanding_alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t outstanding_alloc_countstatic final longOffset for field:ecs_metric_t outstanding_alloc_countstatic MemorySegmentrealloc_count(MemorySegment struct) Getter for field:ecs_metric_t realloc_countstatic voidrealloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t realloc_countstatic final GroupLayoutLayout for field:ecs_metric_t realloc_countstatic final longOffset for field:ecs_metric_t realloc_countstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic MemorySegmentstack_alloc_count(MemorySegment struct) Getter for field:ecs_metric_t stack_alloc_countstatic voidstack_alloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t stack_alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t stack_alloc_countstatic final longOffset for field:ecs_metric_t stack_alloc_countstatic MemorySegmentstack_free_count(MemorySegment struct) Getter for field:ecs_metric_t stack_free_countstatic voidstack_free_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t stack_free_countstatic final GroupLayoutLayout for field:ecs_metric_t stack_free_countstatic final longOffset for field:ecs_metric_t stack_free_countstatic MemorySegmentGetter for field:ecs_metric_t stack_outstanding_alloc_countstatic voidstack_outstanding_alloc_count(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t stack_outstanding_alloc_countstatic final GroupLayoutLayout for field:ecs_metric_t stack_outstanding_alloc_countstatic final longOffset for field:ecs_metric_t stack_outstanding_alloc_count
-
Method Details
-
layout
The layout of this struct -
alloc_count$layout
Layout for field:ecs_metric_t alloc_count -
alloc_count$offset
public static final long alloc_count$offset()Offset for field:ecs_metric_t alloc_count -
alloc_count
Getter for field:ecs_metric_t alloc_count -
alloc_count
Setter for field:ecs_metric_t alloc_count -
realloc_count$layout
Layout for field:ecs_metric_t realloc_count -
realloc_count$offset
public static final long realloc_count$offset()Offset for field:ecs_metric_t realloc_count -
realloc_count
Getter for field:ecs_metric_t realloc_count -
realloc_count
Setter for field:ecs_metric_t realloc_count -
free_count$layout
Layout for field:ecs_metric_t free_count -
free_count$offset
public static final long free_count$offset()Offset for field:ecs_metric_t free_count -
free_count
Getter for field:ecs_metric_t free_count -
free_count
Setter for field:ecs_metric_t free_count -
outstanding_alloc_count$layout
Layout for field:ecs_metric_t outstanding_alloc_count -
outstanding_alloc_count$offset
public static final long outstanding_alloc_count$offset()Offset for field:ecs_metric_t outstanding_alloc_count -
outstanding_alloc_count
Getter for field:ecs_metric_t outstanding_alloc_count -
outstanding_alloc_count
Setter for field:ecs_metric_t outstanding_alloc_count -
block_alloc_count$layout
Layout for field:ecs_metric_t block_alloc_count -
block_alloc_count$offset
public static final long block_alloc_count$offset()Offset for field:ecs_metric_t block_alloc_count -
block_alloc_count
Getter for field:ecs_metric_t block_alloc_count -
block_alloc_count
Setter for field:ecs_metric_t block_alloc_count -
block_free_count$layout
Layout for field:ecs_metric_t block_free_count -
block_free_count$offset
public static final long block_free_count$offset()Offset for field:ecs_metric_t block_free_count -
block_free_count
Getter for field:ecs_metric_t block_free_count -
block_free_count
Setter for field:ecs_metric_t block_free_count -
block_outstanding_alloc_count$layout
Layout for field:ecs_metric_t block_outstanding_alloc_count -
block_outstanding_alloc_count$offset
public static final long block_outstanding_alloc_count$offset()Offset for field:ecs_metric_t block_outstanding_alloc_count -
block_outstanding_alloc_count
Getter for field:ecs_metric_t block_outstanding_alloc_count -
block_outstanding_alloc_count
Setter for field:ecs_metric_t block_outstanding_alloc_count -
stack_alloc_count$layout
Layout for field:ecs_metric_t stack_alloc_count -
stack_alloc_count$offset
public static final long stack_alloc_count$offset()Offset for field:ecs_metric_t stack_alloc_count -
stack_alloc_count
Getter for field:ecs_metric_t stack_alloc_count -
stack_alloc_count
Setter for field:ecs_metric_t stack_alloc_count -
stack_free_count$layout
Layout for field:ecs_metric_t stack_free_count -
stack_free_count$offset
public static final long stack_free_count$offset()Offset for field:ecs_metric_t stack_free_count -
stack_free_count
Getter for field:ecs_metric_t stack_free_count -
stack_free_count
Setter for field:ecs_metric_t stack_free_count -
stack_outstanding_alloc_count$layout
Layout for field:ecs_metric_t stack_outstanding_alloc_count -
stack_outstanding_alloc_count$offset
public static final long stack_outstanding_alloc_count$offset()Offset for field:ecs_metric_t stack_outstanding_alloc_count -
stack_outstanding_alloc_count
Getter for field:ecs_metric_t stack_outstanding_alloc_count -
stack_outstanding_alloc_count
Setter for field:ecs_metric_t stack_outstanding_alloc_count -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-