tools/cygprofile/patch_orderfile.py
def _GroupSymbolsByOffset(binary_filename):
  """Produce a map symbol name -> all symbol names at same offset.

  Suffixes are stripped.
  """
  symbol_infos = [
      s._replace(name=RemoveSuffixes(s.name))
      for s in symbol_extractor.SymbolInfosFromBinary(binary_filename)]
  offset_map = symbol_extractor.GroupSymbolInfosByOffset(symbol_infos)
  missing_offsets = 0
  sym_to_matching = {}
  for sym in symbol_infos:
    if sym.offset not in offset_map:
      missing_offsets += 1
      continue
    matching = [s.name for s in offset_map[sym.offset]]
    assert sym.name in matching
    sym_to_matching[sym.name] = matching
  return sym_to_matching
Produce a map symbol name -> all symbol names at same offset.

  Suffixes are stripped.
  
Produce a map symbol name -> all symbol names at same offset.
Suffixes are stripped.
Produce a map symbol name - > all symbol names at same offset . Suffixes are stripped .
def _GroupSymbolsByOffset(binary_filename):
  symbol_infos = [
      s._replace(name=RemoveSuffixes(s.name))
      for s in symbol_extractor.SymbolInfosFromBinary(binary_filename)]
  offset_map = symbol_extractor.GroupSymbolInfosByOffset(symbol_infos)
  missing_offsets = 0
  sym_to_matching = {}
  for sym in symbol_infos:
    if sym.offset not in offset_map:
      missing_offsets += 1
      continue
    matching = [s.name for s in offset_map[sym.offset]]
    assert sym.name in matching
    sym_to_matching[sym.name] = matching
  return sym_to_matching
def _GroupSymbolsByOffset ( binary_filename ) : symbol_infos = [ s . _replace ( name = RemoveSuffixes ( s . name ) ) for s in symbol_extractor . SymbolInfosFromBinary ( binary_filename ) ] offset_map = symbol_extractor . GroupSymbolInfosByOffset ( symbol_infos ) missing_offsets = 0 sym_to_matching = { } for sym in symbol_infos : if sym . offset not in offset_map : missing_offsets += 1 continue matching = [ s . name for s in offset_map [ sym . offset ] ] assert sym . name in matching sym_to_matching [ sym . name ] = matching return sym_to_matching
Produce a map symbol name -> all symbol names at same offset.
Produce a map symbol name - > all symbol names at same offset .
"""Produce a map symbol name -> all symbol names at same offset.

  Suffixes are stripped.
  """
binary_filename