parameters: (filename)
docstring: Parse the file generated by the 'libear' preloaded library.
  
      Given filename points to a file which contains the basic report
      generated by the interception library or wrapper command. A single
      report file _might_ contain multiple process creation info.
docstring_summary: Parse the file generated by the 'libear' preloaded library.
docstring_tokens: Parse the file generated by the libear preloaded library .
function: def parse_exec_trace(filename):
      """ Parse the file generated by the 'libear' preloaded library.
  
      Given filename points to a file which contains the basic report
      generated by the interception library or wrapper command. A single
      report file _might_ contain multiple process creation info. """
  
      logging.debug('parse exec trace file: %s', filename)
      with open(filename, 'r') as handler:
          content = handler.read()
          for group in filter(bool, content.split(GS)):
              records = group.split(RS)
              yield {
                  'pid': records[0],
                  'ppid': records[1],
                  'function': records[2],
                  'directory': records[3],
                  'command': records[4].split(US)[:-1]
              }
function_tokens: def parse_exec_trace ( filename ) : logging . debug ( 'parse exec trace file: %s' , filename ) with open ( filename , 'r' ) as handler : content = handler . read ( ) for group in filter ( bool , content . split ( GS ) ) : records = group . split ( RS ) yield { 'pid' : records [ 0 ] , 'ppid' : records [ 1 ] , 'function' : records [ 2 ] , 'directory' : records [ 3 ] , 'command' : records [ 4 ] . split ( US ) [ : - 1 ] }