#NEWLINE# def __init__( self , namespace = '' , pid = ( lambda : 'self' ) , proc = '/proc' , registry = core . REGISTRY ) : #NEWLINE# #INDENT# self . _namespace = proc #NEWLINE# self . _pid = pid #NEWLINE# self . _proc = proc #NEWLINE# if namespace : #NEWLINE# #INDENT# self . _prefix = ( namespace + '_process_' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _prefix = 'process_' #NEWLINE# #UNINDENT# self . _ticks = 100.0 #NEWLINE# try : #NEWLINE# #INDENT# self . _ticks = os . sysconf ( 'SC_CLK_TCK' ) #NEWLINE# #UNINDENT# except ( ValueError , TypeError , AttributeError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . _btime = 0 #NEWLINE# try : #NEWLINE# #INDENT# self . _btime = self . _boot_time ( ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if registry : #NEWLINE# #INDENT# registry . register ( self )