Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: trace_processor/experimental/mappers/test_mapper.html

Issue 2334233003: Merge NumericValue into Histogram (Closed)
Patch Set: fix rail_power_metric Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | trace_processor/experimental/mappers/thread_grouping.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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="/tracing/mre/function_handle.html"> 7 <link rel="import" href="/tracing/mre/function_handle.html">
8 <link rel="import" href="/tracing/value/value.html">
9 8
10 <script> 9 <script>
11 'use strict'; 10 'use strict';
12 11
13 tr.exportTo('pi.m', function() { 12 tr.exportTo('pi.m', function() {
14 13
15 function testMapFunction(result, model) { 14 function testMapFunction(result, model) {
16 var someValue = 4; // Chosen by fair roll of the dice. 15 var someValue = 4; // Chosen by fair roll of the dice.
17 result.addPair('simon', {value: someValue}); 16 result.addPair('simon', {value: someValue});
18 } 17 }
19 tr.mre.FunctionRegistry.register(testMapFunction); 18 tr.mre.FunctionRegistry.register(testMapFunction);
20 19
21 return { 20 return {
22 testMapFunction: testMapFunction 21 testMapFunction: testMapFunction
23 }; 22 };
24 }); 23 });
25 24
26 </script> 25 </script>
OLDNEW
« no previous file with comments | « no previous file | trace_processor/experimental/mappers/thread_grouping.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698