Class ecs_sync_stats_t
java.lang.Object
com.github.elebras1.flecs.ecs_sync_stats_t
struct ecs_sync_stats_t {
int64_t first_;
ecs_metric_t time_spent;
ecs_metric_t commands_enqueued;
int64_t last_;
int32_t system_count;
_Bool multi_threaded;
_Bool immediate;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 MemorySegmentcommands_enqueued(MemorySegment struct) Getter for field:ecs_metric_t commands_enqueuedstatic voidcommands_enqueued(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t commands_enqueuedstatic final GroupLayoutLayout for field:ecs_metric_t commands_enqueuedstatic final longOffset for field:ecs_metric_t commands_enqueuedstatic longfirst_(MemorySegment struct) Getter for field:int64_t first_static voidfirst_(MemorySegment struct, long fieldValue) Setter for field:int64_t first_static final ValueLayout.OfLongLayout for field:int64_t first_static final longOffset for field:int64_t first_static booleanimmediate(MemorySegment struct) Getter for field:_Bool immediatestatic voidimmediate(MemorySegment struct, boolean fieldValue) Setter for field:_Bool immediatestatic final ValueLayout.OfBooleanLayout for field:_Bool immediatestatic final longOffset for field:_Bool immediatestatic longlast_(MemorySegment struct) Getter for field:int64_t last_static voidlast_(MemorySegment struct, long fieldValue) Setter for field:int64_t last_static final ValueLayout.OfLongLayout for field:int64_t last_static final longOffset for field:int64_t last_static final GroupLayoutlayout()The layout of this structstatic booleanmulti_threaded(MemorySegment struct) Getter for field:_Bool multi_threadedstatic voidmulti_threaded(MemorySegment struct, boolean fieldValue) Setter for field:_Bool multi_threadedstatic final ValueLayout.OfBooleanLayout for field:_Bool multi_threadedstatic final longOffset for field:_Bool multi_threadedstatic 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 intsystem_count(MemorySegment struct) Getter for field:int32_t system_countstatic voidsystem_count(MemorySegment struct, int fieldValue) Setter for field:int32_t system_countstatic final ValueLayout.OfIntLayout for field:int32_t system_countstatic final longOffset for field:int32_t system_countstatic MemorySegmenttime_spent(MemorySegment struct) Getter for field:ecs_metric_t time_spentstatic voidtime_spent(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t time_spentstatic final GroupLayoutLayout for field:ecs_metric_t time_spentstatic final longOffset for field:ecs_metric_t time_spent
-
Method Details
-
layout
The layout of this struct -
first_$layout
Layout for field:int64_t first_ -
first_$offset
public static final long first_$offset()Offset for field:int64_t first_ -
first_
Getter for field:int64_t first_ -
first_
Setter for field:int64_t first_ -
time_spent$layout
Layout for field:ecs_metric_t time_spent -
time_spent$offset
public static final long time_spent$offset()Offset for field:ecs_metric_t time_spent -
time_spent
Getter for field:ecs_metric_t time_spent -
time_spent
Setter for field:ecs_metric_t time_spent -
commands_enqueued$layout
Layout for field:ecs_metric_t commands_enqueued -
commands_enqueued$offset
public static final long commands_enqueued$offset()Offset for field:ecs_metric_t commands_enqueued -
commands_enqueued
Getter for field:ecs_metric_t commands_enqueued -
commands_enqueued
Setter for field:ecs_metric_t commands_enqueued -
last_$layout
Layout for field:int64_t last_ -
last_$offset
public static final long last_$offset()Offset for field:int64_t last_ -
last_
Getter for field:int64_t last_ -
last_
Setter for field:int64_t last_ -
system_count$layout
Layout for field:int32_t system_count -
system_count$offset
public static final long system_count$offset()Offset for field:int32_t system_count -
system_count
Getter for field:int32_t system_count -
system_count
Setter for field:int32_t system_count -
multi_threaded$layout
Layout for field:_Bool multi_threaded -
multi_threaded$offset
public static final long multi_threaded$offset()Offset for field:_Bool multi_threaded -
multi_threaded
Getter for field:_Bool multi_threaded -
multi_threaded
Setter for field:_Bool multi_threaded -
immediate$layout
Layout for field:_Bool immediate -
immediate$offset
public static final long immediate$offset()Offset for field:_Bool immediate -
immediate
Getter for field:_Bool immediate -
immediate
Setter for field:_Bool immediate -
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()
-