Skip to content

SchedulerStats

[Source]

Provides functions that expose statistics about the current scheduler. All methods will return '0' if the runtime used the program wasn't compiled with runtime statistics turned on.

primitive val SchedulerStats

Constructors

create

[Source]

new val create()
: SchedulerStats val^

Returns


Public Functions

total_mem_allocated

[Source]

Returns the total memory currently allocated by the current scheduler thread (note: this is an approximate value and it can be negative as it represents only a partial view across all the scheduler threads)

fun box total_mem_allocated(
  auth: SchedulerStatsAuth val)
: I64 val

Parameters

Returns


total_mem_used

[Source]

Returns the total memory currently used by the current scheduler thread (note: this is an approximate value and it can be negative as it represents only a partial view across all the scheduler threads)

fun box total_mem_used(
  auth: SchedulerStatsAuth val)
: I64 val

Parameters

Returns


created_actors_counter

[Source]

Returns the number of actors created by the current schedule thread (note: this is an approximate value and it can be negative as it represents only a partial view across all the scheduler threads)

fun box created_actors_counter(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


destroyed_actors_counter

[Source]

Returns the number of actors destroyed by the current schedule thread

fun box destroyed_actors_counter(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


actor_app_cpu

[Source]

Returns the amount of cpu the current scheduler has used to process actor app messages

fun box actor_app_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


actor_gc_mark_cpu

[Source]

Returns the amount of cpu the current scheduler has used for mark phase to garbage collect actor heaps

fun box actor_gc_mark_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


actor_gc_sweep_cpu

[Source]

Returns the amount of cpu the current scheduler has used for sweep phase to garbage collect actor heaps

fun box actor_gc_sweep_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


actor_system_cpu

[Source]

Returns the amount of cpu the current scheduler has used to process actor system messages

fun box actor_system_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


msg_cpu

[Source]

Returns the amount of cpu the current scheduler has used to process scheduler system messages

fun box msg_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


misc_cpu

[Source]

Returns the amount of cpu the current scheduler has used while waiting to do work

fun box misc_cpu(
  auth: SchedulerStatsAuth val)
: USize val

Parameters

Returns


mem_used_inflight_messages

[Source]

Returns the number of memory used by inflight messages created by the current scheduler thread (note: this is an approximate value and it can be negative if the current thread receives more messages than it sends)

fun box mem_used_inflight_messages(
  auth: SchedulerStatsAuth val)
: I64 val

Parameters

Returns


mem_allocated_inflight_messages

[Source]

Returns the number of memory allocated by inflight messages created by the current scheduler thread (note: this is an approximate value and it can be negative if the current thread receives more messages than it sends)

fun box mem_allocated_inflight_messages(
  auth: SchedulerStatsAuth val)
: I64 val

Parameters

Returns


num_inflight_messages

[Source]

Returns the number of inflight messages by the current scheduler thread (note: this is an approximate value and it can be negative if the current thread receives more messages than it sends)

fun box num_inflight_messages(
  auth: SchedulerStatsAuth val)
: I64 val

Parameters

Returns


eq

[Source]

fun box eq(
  that: SchedulerStats val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: SchedulerStats val)
: Bool val

Parameters

Returns