| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <!-- | |
| 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 | |
| 5 found in the LICENSE file. | |
| 6 --> | |
| 7 <link rel="import" href="/perf_insights/mre/function_handle.html"> | |
| 8 <link rel="import" href="/tracing/value/value.html"> | |
| 9 | |
| 10 <script> | |
| 11 'use strict'; | |
| 12 | |
| 13 tr.exportTo('pi.m', function() { | |
| 14 | |
| 15 function testMapFunction(result, model) { | |
| 16 var someValue = 4; // Chosen by fair roll of the dice. | |
| 17 result.addPair('simon', {value: someValue}); | |
| 18 } | |
| 19 pi.FunctionRegistry.register(testMapFunction); | |
| 20 | |
| 21 return { | |
| 22 testMapFunction: testMapFunction | |
| 23 }; | |
| 24 }); | |
| 25 | |
| 26 </script> | |
| OLD | NEW |