telemetry.util.perf_tests_results_helper | index telemetry/util/perf_tests_results_helper.py

`# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |

json math | telemetry.util.perf_result_data_type re | sys |

Functions
`` |  |

FlattenList(values)
  `Returns a simple list without sub-lists.`

GeomMeanAndStdDevFromHistogram(histogram_json)

PrintPages(page_list)
  `Prints list of pages to stdout in the format required by perf tests.`

PrintPerfResult(measurement, trace, values, units, result_type='default', print_to_stdout=True)
  `Prints numerical data to stdout in the format required by perf tests.
  The string args may be empty but they must not contain any colons (:) or
  equals signs (=).
  This is parsed by the buildbot using:
  http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/process_log_utils.py
  Args:
  measurement: A description of the quantity being measured, e.g. "vm_peak".
  On the dashboard, this maps to a particular graph. Mandatory.
  trace: A description of the particular data point, e.g. "reference".
  On the dashboard, this maps to a particular "line" in the graph.
  Mandatory.
  values: A list of numeric measured values. An N-dimensional list will be
  flattened and treated as a simple list.
  units: A description of the units of measure, e.g. "bytes".
  result_type: Accepts values of perf_result_data_type.ALL_TYPES.
  print_to_stdout: If True, prints the output in stdout instead of returning
  the output to caller.
  Returns:
  String of the formated perf result.`

Data
`` |  | RESULT_TYPES = {'default': '*RESULT ', 'histogram': '*HISTOGRAM ', 'informational': '', 'unimportant': 'RESULT ', 'unimportant-histogram': 'HISTOGRAM '}