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

Side by Side Diff: perf_insights/perf_insights_examples/map_process_count.html

Issue 1290323003: Create a mapper to compute browser and renderer startup durations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Answered nits. Created 5 years, 4 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 | perf_insights/perf_insights_examples/map_startup_info.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="/perf_insights/value/value.html"> 7 <link rel="import" href="/perf_insights/value/value.html">
8 <link rel="import" href="/perf_insights/map_function.html"> 8 <link rel="import" href="/perf_insights/map_function.html">
9 9
10 <script> 10 <script>
11 tr.exportTo('pie', function() { 11 tr.exportTo('pie', function() {
12 function mapProcessCount(results, run_info, model) { 12 function mapProcessCount(results, run_info, model) {
13 results.addValue(new pi.v.DictValue( 13 results.addValue(new pi.v.DictValue(
14 run_info, 14 run_info,
15 'load_info', { 15 'load_info', {
16 numProcesses: model.getAllProcesses().length 16 numProcesses: model.getAllProcesses().length
17 })); 17 }));
18 } 18 }
19 19
20 pi.MapFunction.register(mapProcessCount); 20 pi.MapFunction.register(mapProcessCount);
21 21
22 return { 22 return {
23 mapProcessCount: mapProcessCount 23 mapProcessCount: mapProcessCount
24 }; 24 };
25 }); 25 });
26 </script> 26 </script>
OLDNEW
« no previous file with comments | « no previous file | perf_insights/perf_insights_examples/map_startup_info.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698