tools/binary_size/libsupersize/bcanalyzer.py
def RunBcAnalyzerOnIntermediates(target, tool_prefix, output_directory):
  """Calls bcanalyzer and returns encoded map from path to strings.

  Args:
    target: A list of BC file paths.
  """
  assert isinstance(target, list)
  runner = _BcAnalyzerRunner(tool_prefix, output_directory)
  strings_by_path = {}
  for t in target:
    strings_by_path[t] = [s for _, s in _ParseBcAnalyzer(runner.RunOnFile(t))]
  # Escape strings by repr() so there will be no special characters to interfere
  # parallel.EncodeDictOfLists() and decoding.
  return parallel.EncodeDictOfLists(strings_by_path, value_transform=repr)
Calls bcanalyzer and returns encoded map from path to strings.

  Args:
    target: A list of BC file paths.
  
Calls bcanalyzer and returns encoded map from path to strings.
Calls bcanalyzer and returns encoded map from path to strings .
def RunBcAnalyzerOnIntermediates(target, tool_prefix, output_directory):
  assert isinstance(target, list)
  runner = _BcAnalyzerRunner(tool_prefix, output_directory)
  strings_by_path = {}
  for t in target:
    strings_by_path[t] = [s for _, s in _ParseBcAnalyzer(runner.RunOnFile(t))]
  return parallel.EncodeDictOfLists(strings_by_path, value_transform=repr)
def RunBcAnalyzerOnIntermediates ( target , tool_prefix , output_directory ) : assert isinstance ( target , list ) runner = _BcAnalyzerRunner ( tool_prefix , output_directory ) strings_by_path = { } for t in target : strings_by_path [ t ] = [ s for _ , s in _ParseBcAnalyzer ( runner . RunOnFile ( t ) ) ] return parallel . EncodeDictOfLists ( strings_by_path , value_transform = repr )
Calls bcanalyzer and returns encoded map from path to strings.
Calls bcanalyzer and returns encoded map from path to strings .
"""Calls bcanalyzer and returns encoded map from path to strings.

  Args:
    target: A list of BC file paths.
  """ # Escape strings by repr() so there will be no special characters to interfere # parallel.EncodeDictOfLists() and decoding.
target
A list of BC file paths.
A list of BC file paths .
tool_prefix
output_directory