parameters: (self)
docstring: Parses lines in self._lines for meta information.
docstring_summary: Parses lines in self._lines for meta information.
docstring_tokens: Parses lines in self . _lines for meta information .
function: def _parse_meta_information(self):
      """Parses lines in self._lines for meta information."""
      (ln, found) = skip_while(
          0, len(self._lines),
          lambda n: self._lines[n] != 'META:\n')
      if not found:
        return
      ln += 1
  
      while True:
        if self._lines[ln].startswith('Time:'):
          matched_seconds = self._TIME_PATTERN_SECONDS.match(self._lines[ln])
          matched_format = self._TIME_PATTERN_FORMAT.match(self._lines[ln])
          if matched_format:
            self._time = time.mktime(datetime.datetime.strptime(
                matched_format.group(1), '%Y/%m/%d %H:%M:%S').timetuple())
            if matched_format.group(2):
              self._time += float(matched_format.group(2)[1:]) / 1000.0
          elif matched_seconds:
            self._time = float(matched_seconds.group(1))
        elif self._lines[ln].startswith('Reason:'):
          pass  # Nothing to do for 'Reason:'
        elif self._lines[ln].startswith('PageSize: '):
          self._pagesize = int(self._lines[ln][10:])
        elif self._lines[ln].startswith('CommandLine:'):
          pass
        elif (self._lines[ln].startswith('PageFrame: ') or
              self._lines[ln].startswith('PFN: ')):
          if self._lines[ln].startswith('PageFrame: '):
            words = self._lines[ln][11:].split(',')
          else:
            words = self._lines[ln][5:].split(',')
          for word in words:
            if word == '24':
              self._pageframe_length = 24
            elif word == 'Base64':
              self._pageframe_encoding = 'base64'
            elif word == 'PageCount':
              self._has_pagecount = True
        elif self._lines[ln].startswith('RunID: '):
          self._run_id = self._lines[ln][7:].strip()
        elif (self._lines[ln].startswith('MMAP_LIST:') or
              self._lines[ln].startswith('GLOBAL_STATS:')):
          # Skip until "MMAP_LIST:" or "GLOBAL_STATS" is found.
          break
        else:
          pass
        ln += 1
function_tokens: def _parse_meta_information ( self ) : ( ln , found ) = skip_while ( 0 , len ( self . _lines ) , lambda n : self . _lines [ n ] != 'META:\n' ) if not found : return ln += 1 while True : if self . _lines [ ln ] . startswith ( 'Time:' ) : matched_seconds = self . _TIME_PATTERN_SECONDS . match ( self . _lines [ ln ] ) matched_format = self . _TIME_PATTERN_FORMAT . match ( self . _lines [ ln ] ) if matched_format : self . _time = time . mktime ( datetime . datetime . strptime ( matched_format . group ( 1 ) , '%Y/%m/%d %H:%M:%S' ) . timetuple ( ) ) if matched_format . group ( 2 ) : self . _time += float ( matched_format . group ( 2 ) [ 1 : ] ) / 1000.0 elif matched_seconds : self . _time = float ( matched_seconds . group ( 1 ) ) elif self . _lines [ ln ] . startswith ( 'Reason:' ) : pass # Nothing to do for 'Reason:' elif self . _lines [ ln ] . startswith ( 'PageSize: ' ) : self . _pagesize = int ( self . _lines [ ln ] [ 10 : ] ) elif self . _lines [ ln ] . startswith ( 'CommandLine:' ) : pass elif ( self . _lines [ ln ] . startswith ( 'PageFrame: ' ) or self . _lines [ ln ] . startswith ( 'PFN: ' ) ) : if self . _lines [ ln ] . startswith ( 'PageFrame: ' ) : words = self . _lines [ ln ] [ 11 : ] . split ( ',' ) else : words = self . _lines [ ln ] [ 5 : ] . split ( ',' ) for word in words : if word == '24' : self . _pageframe_length = 24 elif word == 'Base64' : self . _pageframe_encoding = 'base64' elif word == 'PageCount' : self . _has_pagecount = True elif self . _lines [ ln ] . startswith ( 'RunID: ' ) : self . _run_id = self . _lines [ ln ] [ 7 : ] . strip ( ) elif ( self . _lines [ ln ] . startswith ( 'MMAP_LIST:' ) or self . _lines [ ln ] . startswith ( 'GLOBAL_STATS:' ) ) : # Skip until "MMAP_LIST:" or "GLOBAL_STATS" is found. break else : pass ln += 1