parameters: (log_file_lines)
return_statement: return call_info
docstring: Parses a merged cyglog produced by mergetraces.py.
  
    Args:
      log_file_lines: array of lines in log file produced by profiled run
  
      Below is an example of a small log file:
      5086e000-52e92000 r-xp 00000000 b3:02 51276      libchromeview.so
      secs       usecs      pid:threadid    func
      START
      1314897086 795828     3587:1074648168 0x509e105c
      1314897086 795874     3587:1074648168 0x509e0eb4
      1314897086 796326     3587:1074648168 0x509e0e3c
      1314897086 796552     3587:1074648168 0x509e07bc
      END
  
    Returns:
      An ordered list of callee offsets.
docstring_summary: Parses a merged cyglog produced by mergetraces.py.
docstring_tokens: Parses a merged cyglog produced by mergetraces . py .
function: def _ParseLogLines(log_file_lines):
    """Parses a merged cyglog produced by mergetraces.py.
  
    Args:
      log_file_lines: array of lines in log file produced by profiled run
  
      Below is an example of a small log file:
      5086e000-52e92000 r-xp 00000000 b3:02 51276      libchromeview.so
      secs       usecs      pid:threadid    func
      START
      1314897086 795828     3587:1074648168 0x509e105c
      1314897086 795874     3587:1074648168 0x509e0eb4
      1314897086 796326     3587:1074648168 0x509e0e3c
      1314897086 796552     3587:1074648168 0x509e07bc
      END
  
    Returns:
      An ordered list of callee offsets.
    """
    call_lines = []
    vm_start = 0
    line = log_file_lines[0]
    assert 'r-xp' in line
    end_index = line.find('-')
    vm_start = int(line[:end_index], 16)
    for line in log_file_lines[3:]:
      fields = line.split()
      if len(fields) == 4:
        call_lines.append(fields)
      else:
        assert fields[0] == 'END'
    # Convert strings to int in fields.
    call_info = []
    for call_line in call_lines:
      addr = int(call_line[3], 16)
      if vm_start < addr:
        addr -= vm_start
        call_info.append(addr)
    return call_info
function_tokens: def _ParseLogLines ( log_file_lines ) : call_lines = [ ] vm_start = 0 line = log_file_lines [ 0 ] assert 'r-xp' in line end_index = line . find ( '-' ) vm_start = int ( line [ : end_index ] , 16 ) for line in log_file_lines [ 3 : ] : fields = line . split ( ) if len ( fields ) == 4 : call_lines . append ( fields ) else : assert fields [ 0 ] == 'END' # Convert strings to int in fields. call_info = [ ] for call_line in call_lines : addr = int ( call_line [ 3 ] , 16 ) if vm_start < addr : addr -= vm_start call_info . append ( addr ) return call_info