arena-py API v1.3.0
arena.utils.program_info
Collect information about the program execution, such as activity times and number of messages sent/received.
class
GetPublicAttrsMixin:
class
QueueStats(builtins.dict):
Inherited Members
- builtins.dict
- get
- setdefault
- pop
- popitem
- keys
- items
- values
- update
- fromkeys
- clear
- copy
Program Run Information; collect program execution information.
ProgramRunInfo( evt_loop=None, queue_len_callable=None, update_callback=None, update_interval_ms=5000, **kwargs)
Returns a ProgramRunInfo
. If an event loop is passed, will setup a periodic task to
update execution stats and perform a callback to notify of this update.
Parameters
- object evt_loop: an event loop to which we add a periodic task to update program stats (optional).
- object queue_len_callable: callable that returns a queue stats object (optional).
- object update_callback: callback when stats are updated (optional).
- int update_interval_ms: interval of the periodic task to update program stats (optional).
- object kwargs: additional attributes to add to the program info, e.g. web host, scene, namespace (optional).