tools/cygprofile/process_profiles.py
def _TranslateReachedOffsetsFromDump(self, items, get, update):
    """Translate raw binary offsets to symbol offsets.

    See GetReachedOffsetsFromDump for details. This version calls
    |get(i)| on each element |i| of |items|, then calls
    |update(i, symbol_offset)| with the updated offset. If the offset is not
    found, update will be called with None.

    Args:
      items: (iterable) Items containing offsets.
      get: (lambda item) As described above.
      update: (lambda item, int) As described above.
    """
    dump_offset_to_symbol_info = self.GetDumpOffsetToSymbolInfo()
    for i in items:
      dump_offset = get(i)
      idx = dump_offset // 2
      assert dump_offset >= 0 and idx < len(dump_offset_to_symbol_info), (
          'Dump offset out of binary range')
      symbol_info = dump_offset_to_symbol_info[idx]
      assert symbol_info, ('A return address (offset = 0x{:08x}) does not map '
          'to any symbol'.format(dump_offset))
      update(i, symbol_info.offset)
Translate raw binary offsets to symbol offsets.

    See GetReachedOffsetsFromDump for details. This version calls
    |get(i)| on each element |i| of |items|, then calls
    |update(i, symbol_offset)| with the updated offset. If the offset is not
    found, update will be called with None.

    Args:
      items: (iterable) Items containing offsets.
      get: (lambda item) As described above.
      update: (lambda item, int) As described above.
    
Translate raw binary offsets to symbol offsets.
See GetReachedOffsetsFromDump for details.
Translate raw binary offsets to symbol offsets . See GetReachedOffsetsFromDump for details .
def _TranslateReachedOffsetsFromDump(self, items, get, update):
    dump_offset_to_symbol_info = self.GetDumpOffsetToSymbolInfo()
    for i in items:
      dump_offset = get(i)
      idx = dump_offset // 2
      assert dump_offset >= 0 and idx < len(dump_offset_to_symbol_info), (
          'Dump offset out of binary range')
      symbol_info = dump_offset_to_symbol_info[idx]
      assert symbol_info, ('A return address (offset = 0x{:08x}) does not map '
          'to any symbol'.format(dump_offset))
      update(i, symbol_info.offset)
def _TranslateReachedOffsetsFromDump ( self , items , get , update ) : dump_offset_to_symbol_info = self . GetDumpOffsetToSymbolInfo ( ) for i in items : dump_offset = get ( i ) idx = dump_offset // 2 assert dump_offset >= 0 and idx < len ( dump_offset_to_symbol_info ) , ( 'Dump offset out of binary range' ) symbol_info = dump_offset_to_symbol_info [ idx ] assert symbol_info , ( 'A return address (offset = 0x{:08x}) does not map ' 'to any symbol' . format ( dump_offset ) ) update ( i , symbol_info . offset )
Translate raw binary offsets to symbol offsets.
Translate raw binary offsets to symbol offsets .
"""Translate raw binary offsets to symbol offsets.

    See GetReachedOffsetsFromDump for details. This version calls
    |get(i)| on each element |i| of |items|, then calls
    |update(i, symbol_offset)| with the updated offset. If the offset is not
    found, update will be called with None.

    Args:
      items: (iterable) Items containing offsets.
      get: (lambda item) As described above.
      update: (lambda item, int) As described above.
    """
self
items
(iterable) Items containing offsets.
( iterable ) Items containing offsets .
get
(lambda item) As described above.
( lambda item ) As described above .
update
(lambda item, int) As described above.
( lambda item int ) As described above .