Skip to content

ActorStats

[Source]

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

primitive val ActorStats

Constructors

create

[Source]

new val create()
: ActorStats val^

Returns


Public Functions

heap_mem_allocated

[Source]

Returns the memory currently allocated by objects on the current actor's heap

fun box heap_mem_allocated(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_mem_used

[Source]

Returns the memory currently used by objects on the current actor's heap

fun box heap_mem_used(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_num_allocated

[Source]

Returns the number of objects currently on the current actor's heap

fun box heap_num_allocated(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_realloc_counter

[Source]

Returns the number of heap re-allocations made on the current actor's heap during the lifetime of the actor

fun box heap_realloc_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_alloc_counter

[Source]

Returns the number of heap allocations made on the current actor's heap during the lifetime of the actor

fun box heap_alloc_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_free_counter

[Source]

Returns the number of heap allocations freed on the current actor's heap during the lifetime of the actor

fun box heap_free_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


heap_gc_counter

[Source]

Returns the number of times the current actor's heap has been garbage collected

fun box heap_gc_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


system_cpu

[Source]

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

fun box system_cpu(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


app_cpu

[Source]

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

fun box app_cpu(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


gc_mark_cpu

[Source]

Returns the amount of cpu the current actor has used for mark phase to garbage collect its heap

fun box gc_mark_cpu(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


gc_sweep_cpu

[Source]

Returns the amount of cpu the current actor has used for sweep phase to garbage collect its heap

fun box gc_sweep_cpu(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


messages_sent_counter

[Source]

Returns the number of messages the current actor has sent

fun box messages_sent_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


system_messages_processed_counter

[Source]

Returns the number of system messages the current actor has processed

fun box system_messages_processed_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


app_messages_processed_counter

[Source]

Returns the number of app messages the current actor has processed

fun box app_messages_processed_counter(
  auth: ActorStatsAuth val)
: USize val

Parameters

Returns


eq

[Source]

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

Parameters

Returns


ne

[Source]

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

Parameters

Returns