tools/perf/core/results_processor/testing.py
def SerializeIntermediateResults(in_results, filepath):
  """Serialize intermediate results to a filepath.

  Args:
    in_results: A list of test results.
    filepath: A file path where to serialize the intermediate results.
  """
  with open(filepath, 'w') as fp:
    for test_result in in_results:
      json.dump({'testResult': test_result}, fp,
                sort_keys=True, separators=(',', ':'))
      fp.write('\n')
Serialize intermediate results to a filepath.

  Args:
    in_results: A list of test results.
    filepath: A file path where to serialize the intermediate results.
  
Serialize intermediate results to a filepath.
Serialize intermediate results to a filepath .
def SerializeIntermediateResults(in_results, filepath):
  with open(filepath, 'w') as fp:
    for test_result in in_results:
      json.dump({'testResult': test_result}, fp,
                sort_keys=True, separators=(',', ':'))
      fp.write('\n')
def SerializeIntermediateResults ( in_results , filepath ) : with open ( filepath , 'w' ) as fp : for test_result in in_results : json . dump ( { 'testResult' : test_result } , fp , sort_keys = True , separators = ( ',' , ':' ) ) fp . write ( '\n' )
Serialize intermediate results to a filepath.
Serialize intermediate results to a filepath .
"""Serialize intermediate results to a filepath.

  Args:
    in_results: A list of test results.
    filepath: A file path where to serialize the intermediate results.
  """
in_results
A list of test results.
A list of test results .
filepath
A file path where to serialize the intermediate results.
A file path where to serialize the intermediate results .