tools/perf/process_perf_results.py
def _upload_perf_results(json_to_upload, name, configuration_name,
    build_properties, output_json_file):
  """Upload the contents of result JSON(s) to the perf dashboard."""
  args= [
      '--buildername', build_properties['buildername'],
      '--buildnumber', build_properties['buildnumber'],
      '--name', name,
      '--configuration-name', configuration_name,
      '--results-file', json_to_upload,
      '--results-url', RESULTS_URL,
      '--got-revision-cp', build_properties['got_revision_cp'],
      '--got-v8-revision', build_properties['got_v8_revision'],
      '--got-webrtc-revision', build_properties['got_webrtc_revision'],
      '--output-json-file', output_json_file,
      '--perf-dashboard-machine-group', _GetMachineGroup(build_properties)
  ]
  buildbucket = build_properties.get('buildbucket', {})
  if isinstance(buildbucket, basestring):
    buildbucket = json.loads(buildbucket)

  if 'build' in buildbucket:
    args += [
      '--project', buildbucket['build'].get('project'),
      '--buildbucket', buildbucket['build'].get('bucket'),
    ]

  if build_properties.get('got_revision'):
    args.append('--git-revision')
    args.append(build_properties['got_revision'])
  if _is_histogram(json_to_upload):
    args.append('--send-as-histograms')

  #TODO(crbug.com/1072729): log this in top level
  logging.info('upload_results_to_perf_dashboard: %s.' % args)

  return upload_results_to_perf_dashboard.main(args)
Upload the contents of result JSON(s) to the perf dashboard.
Upload the contents of result JSON(s) to the perf dashboard.
Upload the contents of result JSON ( s ) to the perf dashboard .
def _upload_perf_results(json_to_upload, name, configuration_name,
    build_properties, output_json_file):
  args= [
      '--buildername', build_properties['buildername'],
      '--buildnumber', build_properties['buildnumber'],
      '--name', name,
      '--configuration-name', configuration_name,
      '--results-file', json_to_upload,
      '--results-url', RESULTS_URL,
      '--got-revision-cp', build_properties['got_revision_cp'],
      '--got-v8-revision', build_properties['got_v8_revision'],
      '--got-webrtc-revision', build_properties['got_webrtc_revision'],
      '--output-json-file', output_json_file,
      '--perf-dashboard-machine-group', _GetMachineGroup(build_properties)
  ]
  buildbucket = build_properties.get('buildbucket', {})
  if isinstance(buildbucket, basestring):
    buildbucket = json.loads(buildbucket)
  if 'build' in buildbucket:
    args += [
      '--project', buildbucket['build'].get('project'),
      '--buildbucket', buildbucket['build'].get('bucket'),
    ]
  if build_properties.get('got_revision'):
    args.append('--git-revision')
    args.append(build_properties['got_revision'])
  if _is_histogram(json_to_upload):
    args.append('--send-as-histograms')
  logging.info('upload_results_to_perf_dashboard: %s.' % args)
  return upload_results_to_perf_dashboard.main(args)
def _upload_perf_results ( json_to_upload , name , configuration_name , build_properties , output_json_file ) : args = [ '--buildername' , build_properties [ 'buildername' ] , '--buildnumber' , build_properties [ 'buildnumber' ] , '--name' , name , '--configuration-name' , configuration_name , '--results-file' , json_to_upload , '--results-url' , RESULTS_URL , '--got-revision-cp' , build_properties [ 'got_revision_cp' ] , '--got-v8-revision' , build_properties [ 'got_v8_revision' ] , '--got-webrtc-revision' , build_properties [ 'got_webrtc_revision' ] , '--output-json-file' , output_json_file , '--perf-dashboard-machine-group' , _GetMachineGroup ( build_properties ) ] buildbucket = build_properties . get ( 'buildbucket' , { } ) if isinstance ( buildbucket , basestring ) : buildbucket = json . loads ( buildbucket ) if 'build' in buildbucket : args += [ '--project' , buildbucket [ 'build' ] . get ( 'project' ) , '--buildbucket' , buildbucket [ 'build' ] . get ( 'bucket' ) , ] if build_properties . get ( 'got_revision' ) : args . append ( '--git-revision' ) args . append ( build_properties [ 'got_revision' ] ) if _is_histogram ( json_to_upload ) : args . append ( '--send-as-histograms' ) logging . info ( 'upload_results_to_perf_dashboard: %s.' % args ) return upload_results_to_perf_dashboard . main ( args )
Upload the contents of result JSON(s) to the perf dashboard.
Upload the contents of result JSON ( s ) to the perf dashboard .
"""Upload the contents of result JSON(s) to the perf dashboard.""" #TODO(crbug.com/1072729): log this in top level
json_to_upload
name
configuration_name
build_properties
output_json_file