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