blob: a6b90da32e745b816c9b6360ece84be663439a11 [file] [log] [blame]
<!DOCTYPE HTML>
<!--
Copyright (c) 2015 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.
-->
<link rel="import" href="/perf_insights/value/value.html">
<link rel="import" href="/perf_insights/wr/wr.html">
<link rel="import" href="/perf_insights/map_function.html">
<script>
tr.exportTo('pi.wr', function() {
function weatherReportMapFunction(results, run_info, model) {
var wr = pi.wr.getWeatherReportFromModel(model);
results.addValue(new pi.v.DictValue(
run_info, 'wr', pi.wr.getWeatherReportFromModel(model)));
}
pi.MapFunction.register(weatherReportMapFunction);
return {
weatherReportMapFunction: weatherReportMapFunction
};
});
</script>