tools/perf/process_perf_results.py
def _merge_json_output(output_json,
                       jsons_to_merge,
                       extra_links,
                       test_cross_device=False):
  """Merges the contents of one or more results JSONs.

  Args:
    output_json: A path to a JSON file to which the merged results should be
      written.
    jsons_to_merge: A list of JSON files that should be merged.
    extra_links: a (key, value) map in which keys are the human-readable strings
      which describe the data, and value is logdog url that contain the data.
  """
  begin_time = time.time()
  merged_results = results_merger.merge_test_results(jsons_to_merge,
                                                     test_cross_device)

  # Only append the perf results links if present
  if extra_links:
    merged_results['links'] = extra_links

  with open(output_json, 'w') as f:
    json.dump(merged_results, f)

  end_time = time.time()
  print_duration('Merging json test results', begin_time, end_time)
  return 0
Merges the contents of one or more results JSONs.

  Args:
    output_json: A path to a JSON file to which the merged results should be
      written.
    jsons_to_merge: A list of JSON files that should be merged.
    extra_links: a (key, value) map in which keys are the human-readable strings
      which describe the data, and value is logdog url that contain the data.
  
Merges the contents of one or more results JSONs.
Merges the contents of one or more results JSONs .
def _merge_json_output(output_json,
                       jsons_to_merge,
                       extra_links,
                       test_cross_device=False):
  begin_time = time.time()
  merged_results = results_merger.merge_test_results(jsons_to_merge,
                                                     test_cross_device)
  if extra_links:
    merged_results['links'] = extra_links
  with open(output_json, 'w') as f:
    json.dump(merged_results, f)
  end_time = time.time()
  print_duration('Merging json test results', begin_time, end_time)
  return 0
def _merge_json_output ( output_json , jsons_to_merge , extra_links , test_cross_device = False ) : begin_time = time . time ( ) merged_results = results_merger . merge_test_results ( jsons_to_merge , test_cross_device ) if extra_links : merged_results [ 'links' ] = extra_links with open ( output_json , 'w' ) as f : json . dump ( merged_results , f ) end_time = time . time ( ) print_duration ( 'Merging json test results' , begin_time , end_time ) return 0
Merges the contents of one or more results JSONs.
Merges the contents of one or more results JSONs .
"""Merges the contents of one or more results JSONs.

  Args:
    output_json: A path to a JSON file to which the merged results should be
      written.
    jsons_to_merge: A list of JSON files that should be merged.
    extra_links: a (key, value) map in which keys are the human-readable strings
      which describe the data, and value is logdog url that contain the data.
  """ # Only append the perf results links if present
output_json
A path to a JSON file to which the merged results should be
written.
A path to a JSON file to which the merged results should be written .
jsons_to_merge
A list of JSON files that should be merged.
A list of JSON files that should be merged .
extra_links
a (key, value) map in which keys are the human-readable strings
which describe the data, and value is logdog url that contain the data.
a ( key value ) map in which keys are the human - readable strings which describe the data and value is logdog url that contain the data .
test_cross_device