tools/perf/process_perf_results.py
def main():
  """ See collect_task.collect_task for more on the merge script API. """
  logging.info(sys.argv)
  parser = argparse.ArgumentParser()
  # configuration-name (previously perf-id) is the name of bot the tests run on
  # For example, buildbot-test is the name of the android-go-perf bot
  # configuration-name and results-url are set in the json file which is going
  # away tools/perf/core/chromium.perf.fyi.extras.json
  parser.add_argument('--configuration-name', help=argparse.SUPPRESS)

  parser.add_argument('--build-properties', help=argparse.SUPPRESS)
  parser.add_argument('--summary-json', help=argparse.SUPPRESS)
  parser.add_argument('--task-output-dir', help=argparse.SUPPRESS)
  parser.add_argument('-o', '--output-json', required=True,
                      help=argparse.SUPPRESS)
  parser.add_argument(
      '--skip-perf',
      action='store_true',
      help='In lightweight mode, using --skip-perf will skip the performance'
      ' data handling.')
  parser.add_argument(
      '--lightweight',
      action='store_true',
      help='Choose the lightweight mode in which the perf result handling'
      ' is performed on a separate VM.')
  parser.add_argument('json_files', nargs='*', help=argparse.SUPPRESS)
  parser.add_argument('--smoke-test-mode', action='store_true',
                      help='This test should be run in smoke test mode'
                      ' meaning it does not upload to the perf dashboard')

  args = parser.parse_args()

  output_results_dir = tempfile.mkdtemp('outputresults')
  try:
    return_code, _ = process_perf_results(
        args.output_json, args.configuration_name, args.build_properties,
        args.task_output_dir, args.smoke_test_mode, output_results_dir,
        args.lightweight, args.skip_perf)
    return return_code
  finally:
    shutil.rmtree(output_results_dir)
 See collect_task.collect_task for more on the merge script API. 
See collect_task.collect_task for more on the merge script API.
See collect_task . collect_task for more on the merge script API .
def main():
  logging.info(sys.argv)
  parser = argparse.ArgumentParser()
  parser.add_argument('--configuration-name', help=argparse.SUPPRESS)
  parser.add_argument('--build-properties', help=argparse.SUPPRESS)
  parser.add_argument('--summary-json', help=argparse.SUPPRESS)
  parser.add_argument('--task-output-dir', help=argparse.SUPPRESS)
  parser.add_argument('-o', '--output-json', required=True,
                      help=argparse.SUPPRESS)
  parser.add_argument(
      '--skip-perf',
      action='store_true',
      help='In lightweight mode, using --skip-perf will skip the performance'
      ' data handling.')
  parser.add_argument(
      '--lightweight',
      action='store_true',
      help='Choose the lightweight mode in which the perf result handling'
      ' is performed on a separate VM.')
  parser.add_argument('json_files', nargs='*', help=argparse.SUPPRESS)
  parser.add_argument('--smoke-test-mode', action='store_true',
                      help='This test should be run in smoke test mode'
                      ' meaning it does not upload to the perf dashboard')
  args = parser.parse_args()
  output_results_dir = tempfile.mkdtemp('outputresults')
  try:
    return_code, _ = process_perf_results(
        args.output_json, args.configuration_name, args.build_properties,
        args.task_output_dir, args.smoke_test_mode, output_results_dir,
        args.lightweight, args.skip_perf)
    return return_code
  finally:
    shutil.rmtree(output_results_dir)
def main ( ) : logging . info ( sys . argv ) parser = argparse . ArgumentParser ( ) parser . add_argument ( '--configuration-name' , help = argparse . SUPPRESS ) parser . add_argument ( '--build-properties' , help = argparse . SUPPRESS ) parser . add_argument ( '--summary-json' , help = argparse . SUPPRESS ) parser . add_argument ( '--task-output-dir' , help = argparse . SUPPRESS ) parser . add_argument ( '-o' , '--output-json' , required = True , help = argparse . SUPPRESS ) parser . add_argument ( '--skip-perf' , action = 'store_true' , help = 'In lightweight mode, using --skip-perf will skip the performance' ' data handling.' ) parser . add_argument ( '--lightweight' , action = 'store_true' , help = 'Choose the lightweight mode in which the perf result handling' ' is performed on a separate VM.' ) parser . add_argument ( 'json_files' , nargs = '*' , help = argparse . SUPPRESS ) parser . add_argument ( '--smoke-test-mode' , action = 'store_true' , help = 'This test should be run in smoke test mode' ' meaning it does not upload to the perf dashboard' ) args = parser . parse_args ( ) output_results_dir = tempfile . mkdtemp ( 'outputresults' ) try : return_code , _ = process_perf_results ( args . output_json , args . configuration_name , args . build_properties , args . task_output_dir , args . smoke_test_mode , output_results_dir , args . lightweight , args . skip_perf ) return return_code finally : shutil . rmtree ( output_results_dir )
See collect_task.collect_task for more on the merge script API.
See collect_task . collect_task for more on the merge script API .
""" See collect_task.collect_task for more on the merge script API. """ # configuration-name (previously perf-id) is the name of bot the tests run on # For example, buildbot-test is the name of the android-go-perf bot # configuration-name and results-url are set in the json file which is going # away tools/perf/core/chromium.perf.fyi.extras.json