tools/cygprofile/orderfile_generator_backend.py
def _ProcessPhasedOrderfile(self, files):
    """Process the phased orderfiles produced by system health benchmarks.

    The offsets will be placed in _GetUnpatchedOrderfileFilename().

    Args:
      file: Profile files pulled locally.
    """
    self._step_recorder.BeginStep('Process Phased Orderfile')
    profiles = process_profiles.ProfileManager(files)
    processor = process_profiles.SymbolOffsetProcessor(
        self._compiler.lib_chrome_so)
    ordered_symbols = cluster.ClusterOffsets(profiles, processor,
        call_graph=self._options.use_call_graph)
    if not ordered_symbols:
      raise Exception('Failed to get ordered symbols')
    for sym in ordered_symbols:
      assert not sym.startswith('OUTLINED_FUNCTION_'), (
          'Outlined function found in instrumented function, very likely '
          'something has gone very wrong!')
    self._output_data['offsets_kib'] = processor.SymbolsSize(
            ordered_symbols) / 1024
    with open(self._GetUnpatchedOrderfileFilename(), 'w') as orderfile:
      orderfile.write('\n'.join(ordered_symbols))
Process the phased orderfiles produced by system health benchmarks.

    The offsets will be placed in _GetUnpatchedOrderfileFilename().

    Args:
      file: Profile files pulled locally.
    
Process the phased orderfiles produced by system health benchmarks.
The offsets will be placed in _GetUnpatchedOrderfileFilename().
Process the phased orderfiles produced by system health benchmarks . The offsets will be placed in _GetUnpatchedOrderfileFilename () .
def _ProcessPhasedOrderfile(self, files):
    self._step_recorder.BeginStep('Process Phased Orderfile')
    profiles = process_profiles.ProfileManager(files)
    processor = process_profiles.SymbolOffsetProcessor(
        self._compiler.lib_chrome_so)
    ordered_symbols = cluster.ClusterOffsets(profiles, processor,
        call_graph=self._options.use_call_graph)
    if not ordered_symbols:
      raise Exception('Failed to get ordered symbols')
    for sym in ordered_symbols:
      assert not sym.startswith('OUTLINED_FUNCTION_'), (
          'Outlined function found in instrumented function, very likely '
          'something has gone very wrong!')
    self._output_data['offsets_kib'] = processor.SymbolsSize(
            ordered_symbols) / 1024
    with open(self._GetUnpatchedOrderfileFilename(), 'w') as orderfile:
      orderfile.write('\n'.join(ordered_symbols))
def _ProcessPhasedOrderfile ( self , files ) : self . _step_recorder . BeginStep ( 'Process Phased Orderfile' ) profiles = process_profiles . ProfileManager ( files ) processor = process_profiles . SymbolOffsetProcessor ( self . _compiler . lib_chrome_so ) ordered_symbols = cluster . ClusterOffsets ( profiles , processor , call_graph = self . _options . use_call_graph ) if not ordered_symbols : raise Exception ( 'Failed to get ordered symbols' ) for sym in ordered_symbols : assert not sym . startswith ( 'OUTLINED_FUNCTION_' ) , ( 'Outlined function found in instrumented function, very likely ' 'something has gone very wrong!' ) self . _output_data [ 'offsets_kib' ] = processor . SymbolsSize ( ordered_symbols ) / 1024 with open ( self . _GetUnpatchedOrderfileFilename ( ) , 'w' ) as orderfile : orderfile . write ( '\n' . join ( ordered_symbols ) )
Process the phased orderfiles produced by system health benchmarks.
Process the phased orderfiles produced by system health benchmarks .
"""Process the phased orderfiles produced by system health benchmarks.

    The offsets will be placed in _GetUnpatchedOrderfileFilename().

    Args:
      file: Profile files pulled locally.
    """
self
files
file
Profile files pulled locally.
Profile files pulled locally .