1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.util.perf_tests_results_helper</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.util.html"><font color="#ffffff">util</font></a>.perf_tests_results_helper</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/util/perf_tests_results_helper.py">telemetry/util/perf_tests_results_helper.py</a></font></td></tr></table> 13 <p><tt># Copyright 2013 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="json.html">json</a><br> 24<a href="math.html">math</a><br> 25</td><td width="25%" valign=top><a href="telemetry.util.perf_result_data_type.html">telemetry.util.perf_result_data_type</a><br> 26<a href="re.html">re</a><br> 27</td><td width="25%" valign=top><a href="sys.html">sys</a><br> 28</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 29<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 30<tr bgcolor="#eeaa77"> 31<td colspan=3 valign=bottom> <br> 32<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> 33 34<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> 35<td width="100%"><dl><dt><a name="-FlattenList"><strong>FlattenList</strong></a>(values)</dt><dd><tt>Returns a simple list without sub-lists.</tt></dd></dl> 36 <dl><dt><a name="-GeomMeanAndStdDevFromHistogram"><strong>GeomMeanAndStdDevFromHistogram</strong></a>(histogram_json)</dt></dl> 37 <dl><dt><a name="-PrintPages"><strong>PrintPages</strong></a>(page_list)</dt><dd><tt>Prints list of pages to stdout in the format required by perf tests.</tt></dd></dl> 38 <dl><dt><a name="-PrintPerfResult"><strong>PrintPerfResult</strong></a>(measurement, trace, values, units, result_type<font color="#909090">='default'</font>, print_to_stdout<font color="#909090">=True</font>)</dt><dd><tt>Prints numerical data to stdout in the format required by perf tests.<br> 39 <br> 40The string args may be empty but they must not contain any colons (:) or<br> 41equals signs (=).<br> 42This is parsed by the buildbot using:<br> 43<a href="http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/process_log_utils.py">http://src.chromium.org/viewvc/chrome/trunk/tools/build/scripts/slave/process_log_utils.py</a><br> 44 <br> 45Args:<br> 46 measurement: A description of the quantity being measured, e.g. "vm_peak".<br> 47 On the dashboard, this maps to a particular graph. Mandatory.<br> 48 trace: A description of the particular data point, e.g. "reference".<br> 49 On the dashboard, this maps to a particular "line" in the graph.<br> 50 Mandatory.<br> 51 values: A list of numeric measured values. An N-dimensional list will be<br> 52 flattened and treated as a simple list.<br> 53 units: A description of the units of measure, e.g. "bytes".<br> 54 result_type: Accepts values of perf_result_data_type.ALL_TYPES.<br> 55 print_to_stdout: If True, prints the output in stdout instead of returning<br> 56 the output to caller.<br> 57 <br> 58 Returns:<br> 59 String of the formated perf result.</tt></dd></dl> 60</td></tr></table><p> 61<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 62<tr bgcolor="#55aa55"> 63<td colspan=3 valign=bottom> <br> 64<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> 65 66<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> 67<td width="100%"><strong>RESULT_TYPES</strong> = {'default': '*RESULT ', 'histogram': '*HISTOGRAM ', 'informational': '', 'unimportant': 'RESULT ', 'unimportant-histogram': 'HISTOGRAM '}</td></tr></table> 68</body></html>