#NEWLINE# def info( self ) : #NEWLINE# #INDENT# 'Return a nested dictionary of information related to the actor\n        status and performance. The dictionary contains the following entries:\n\n        * ``actor`` a dictionary containing information regarding the type of\n          actor and its status.\n        * ``events`` a dictionary of information about the\n          :ref:`event loop <asyncio-event-loop>` running the actor.\n        * ``extra`` the :attr:`extra` attribute (you can use it to add stuff).\n        * ``system`` system info.\n\n        This method is invoked when you run the\n        :ref:`info command <actor_info_command>` from another actor.\n        ' #NEWLINE# if ( not self . started ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# isp = self . is_process ( ) #NEWLINE# actor = { #NEWLINE# #INDENT# 'name' : self . name , #NEWLINE# 'state' : self . info_state , #NEWLINE# 'actor_id' : self . aid , #NEWLINE# 'uptime' : ( self . _loop . time ( ) - self . _started ) , #NEWLINE# 'thread_id' : self . tid , #NEWLINE# 'process_id' : self . pid , #NEWLINE# 'is_process' : isp , #NEWLINE# 'age' : self . impl . age , #NEWLINE# #UNINDENT# } #NEWLINE# events = { #NEWLINE# #INDENT# 'callbacks' : len ( self . _loop . _ready ) , #NEWLINE# 'scheduled' : len ( self . _loop . _scheduled ) , #NEWLINE# #UNINDENT# } #NEWLINE# data = { #NEWLINE# #INDENT# 'actor' : actor , #NEWLINE# 'events' : events , #NEWLINE# 'extra' : self . extra , #NEWLINE# #UNINDENT# } #NEWLINE# if isp : #NEWLINE# #INDENT# data [ 'system' ] = system . process_info ( self . pid ) #NEWLINE# #UNINDENT# self . fire_event ( 'on_info' , info = data ) #NEWLINE# return data