| |
- ResultsAsChartDict(benchmark_metadata, page_specific_values, summary_values)
- Produces a dict for serialization to Chart JSON format from raw values.
Chart JSON is a transformation of the basic Telemetry JSON format that
removes the page map, summarizes the raw values, and organizes the results
by chart and trace name. This function takes the key pieces of data needed to
perform this transformation (namely, lists of values and a benchmark metadata
object) and processes them into a dict which can be serialized using the json
module.
Design doc for schema: http://goo.gl/kOtf1Y
Args:
page_specific_values: list of page-specific values
summary_values: list of summary values
benchmark_metadata: a benchmark.BenchmarkMetadata object
Returns:
A Chart JSON dict corresponding to the given data.
|