#NEWLINE# def __init__( self , thread , cpu_id , ts , name , body , parser = None ) : #NEWLINE# #INDENT# "\n        parameters:\n\n        :thread: thread which generated the event\n        :cpu: cpu on which the event has occurred\n        :ts: timestamp of the event\n        :name: the name of the event\n        :bodytext: a string with the rest of the event text\n        :parser: optionally, a function that will parse bodytext to populate\n                 this event's attributes\n\n        The parser can be any callable that can be invoked with\n\n            parser(event, text)\n\n        Where ``event`` is this TraceCmdEvent instance, and ``text`` is the body text to be\n        parsed. The parser should updated the passed event instance and not return anything\n        (the return value will be ignored). Any exceptions raised by the parser will be silently\n        ignored (note that this means that the event's attributes may be partially initialized).\n\n        " #NEWLINE# self . thread = thread #NEWLINE# self . reporting_cpu_id = int ( cpu_id ) #NEWLINE# self . timestamp = numeric ( ts ) #NEWLINE# self . name = name #NEWLINE# self . text = body #NEWLINE# self . fields = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if parser : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# parser ( self , self . text ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# pass