tools/cygprofile/symbol_extractor.py
def _SymbolInfosFromLlvmNm(lines):
  """Extracts all defined symbols names from llvm-nm output.

  Only defined (weak and regular) symbols are extracted.

  Args:
    lines: Iterable of lines.

  Returns:
    [str] A list of symbol names, can be empty.
  """
  symbol_names = []
  for line in lines:
    line = line.decode('utf-8')
    m = _LLVM_NM_LINE_RE.match(line)
    assert m is not None, line
    if m.group('symbol_type') not in ['t', 'T', 'w', 'W']:
      continue
    symbol_names.append(m.group('name'))
  return symbol_names
Extracts all defined symbols names from llvm-nm output.

  Only defined (weak and regular) symbols are extracted.

  Args:
    lines: Iterable of lines.

  Returns:
    [str] A list of symbol names, can be empty.
  
Extracts all defined symbols names from llvm-nm output.
Only defined (weak and regular) symbols are extracted.
Extracts all defined symbols names from llvm - nm output . Only defined ( weak and regular ) symbols are extracted .
def _SymbolInfosFromLlvmNm(lines):
  symbol_names = []
  for line in lines:
    line = line.decode('utf-8')
    m = _LLVM_NM_LINE_RE.match(line)
    assert m is not None, line
    if m.group('symbol_type') not in ['t', 'T', 'w', 'W']:
      continue
    symbol_names.append(m.group('name'))
  return symbol_names
def _SymbolInfosFromLlvmNm ( lines ) : symbol_names = [ ] for line in lines : line = line . decode ( 'utf-8' ) m = _LLVM_NM_LINE_RE . match ( line ) assert m is not None , line if m . group ( 'symbol_type' ) not in [ 't' , 'T' , 'w' , 'W' ] : continue symbol_names . append ( m . group ( 'name' ) ) return symbol_names
Extracts all defined symbols names from llvm-nm output.
Extracts all defined symbols names from llvm - nm output .
"""Extracts all defined symbols names from llvm-nm output.

  Only defined (weak and regular) symbols are extracted.

  Args:
    lines: Iterable of lines.

  Returns:
    [str] A list of symbol names, can be empty.
  """
[str] A list of symbol names, can be empty.
[ str ] A list of symbol names can be empty .
lines
Iterable of lines.
Iterable of lines .