| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <link rel="import" href="/perf_insights/mre/function_handle.html"> | 7 <link rel="import" href="/perf_insights/mre/function_handle.html"> |
| 8 <link rel="import" href="/tracing/value/value.html"> | 8 <link rel="import" href="/tracing/value/value.html"> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| 11 'use strict'; | 11 'use strict'; |
| 12 | 12 |
| 13 tr.exportTo('pi.m', function() { | 13 tr.exportTo('pi.m', function() { |
| 14 | 14 |
| 15 function testMapFunction(result, model) { | 15 function testMapFunction(result, model) { |
| 16 var someValue = 4; // Chosen by fair roll of the dice. | 16 var someValue = 4; // Chosen by fair roll of the dice. |
| 17 result.addPair('simon', {value: someValue}); | 17 result.addPair('simon', {value: someValue}); |
| 18 } | 18 } |
| 19 pi.FunctionRegistry.register(testMapFunction); | 19 pi.FunctionRegistry.register(testMapFunction); |
| 20 | 20 |
| 21 return { | 21 return { |
| 22 testMapFunction: testMapFunction | 22 testMapFunction: testMapFunction |
| 23 }; | 23 }; |
| 24 }); | 24 }); |
| 25 | 25 |
| 26 </script> | 26 </script> |
| OLD | NEW |