ActorStats¶
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.
Constructors¶
create¶
Returns¶
- ActorStats val^
Public Functions¶
heap_mem_allocated¶
Returns the memory currently allocated by objects on the current actor's heap
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_mem_used¶
Returns the memory currently used by objects on the current actor's heap
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_num_allocated¶
Returns the number of objects currently on the current actor's heap
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_realloc_counter¶
Returns the number of heap re-allocations made on the current actor's heap during the lifetime of the actor
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_alloc_counter¶
Returns the number of heap allocations made on the current actor's heap during the lifetime of the actor
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_free_counter¶
Returns the number of heap allocations freed on the current actor's heap during the lifetime of the actor
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
heap_gc_counter¶
Returns the number of times the current actor's heap has been garbage collected
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
system_cpu¶
Returns the amount of cpu the current actor has used to process system messages
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
app_cpu¶
Returns the amount of cpu the current actor has used to process app messages
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
gc_mark_cpu¶
Returns the amount of cpu the current actor has used for mark phase to garbage collect its heap
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
gc_sweep_cpu¶
Returns the amount of cpu the current actor has used for sweep phase to garbage collect its heap
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
messages_sent_counter¶
Returns the number of messages the current actor has sent
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
system_messages_processed_counter¶
Returns the number of system messages the current actor has processed
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
app_messages_processed_counter¶
Returns the number of app messages the current actor has processed
Parameters¶
- auth: ActorStatsAuth val
Returns¶
- USize val
eq¶
Parameters¶
- that: ActorStats val
Returns¶
- Bool val
ne¶
Parameters¶
- that: ActorStats val
Returns¶
- Bool val