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

Side by Side Diff: tracing/tracing/ui/analysis/memory_dump_overview_pane.html

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: rebase Created 3 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
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 7
8 <link rel="import" href="/tracing/base/fixed_color_scheme.html"> 8 <link rel="import" href="/tracing/base/fixed_color_scheme.html">
9 <link rel="import" href="/tracing/base/iteration_helpers.html">
10 <link rel="import" href="/tracing/base/scalar.html"> 9 <link rel="import" href="/tracing/base/scalar.html">
11 <link rel="import" href="/tracing/base/unit.html"> 10 <link rel="import" href="/tracing/base/unit.html">
12 <link rel="import" href="/tracing/base/unit_scale.html"> 11 <link rel="import" href="/tracing/base/unit_scale.html">
12 <link rel="import" href="/tracing/base/utils.html">
13 <link rel="import" href="/tracing/model/memory_allocator_dump.html"> 13 <link rel="import" href="/tracing/model/memory_allocator_dump.html">
14 <link rel="import" href="/tracing/ui/analysis/memory_dump_allocator_details_pane .html"> 14 <link rel="import" href="/tracing/ui/analysis/memory_dump_allocator_details_pane .html">
15 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html"> 15 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html">
16 <link rel="import" href="/tracing/ui/analysis/memory_dump_vm_regions_details_pan e.html"> 16 <link rel="import" href="/tracing/ui/analysis/memory_dump_vm_regions_details_pan e.html">
17 <link rel="import" href="/tracing/ui/analysis/stacked_pane.html"> 17 <link rel="import" href="/tracing/ui/analysis/stacked_pane.html">
18 <link rel="import" href="/tracing/ui/base/color_legend.html"> 18 <link rel="import" href="/tracing/ui/base/color_legend.html">
19 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> 19 <link rel="import" href="/tracing/ui/base/dom_helpers.html">
20 <link rel="import" href="/tracing/ui/base/table.html"> 20 <link rel="import" href="/tracing/ui/base/table.html">
21 <link rel="import" href="/tracing/ui/view_specific_brushing_state.html"> 21 <link rel="import" href="/tracing/ui/view_specific_brushing_state.html">
22 22
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const SOME_TIMESTAMPS_INFO_QUANTIFIER = 92 const SOME_TIMESTAMPS_INFO_QUANTIFIER =
93 tr.ui.analysis.MemoryColumn.SOME_TIMESTAMPS_INFO_QUANTIFIER; 93 tr.ui.analysis.MemoryColumn.SOME_TIMESTAMPS_INFO_QUANTIFIER;
94 94
95 // Unicode symbols used for memory cell info icons and messages. 95 // Unicode symbols used for memory cell info icons and messages.
96 const RIGHTWARDS_ARROW_WITH_HOOK = String.fromCharCode(0x21AA); 96 const RIGHTWARDS_ARROW_WITH_HOOK = String.fromCharCode(0x21AA);
97 const RIGHTWARDS_ARROW_FROM_BAR = String.fromCharCode(0x21A6); 97 const RIGHTWARDS_ARROW_FROM_BAR = String.fromCharCode(0x21A6);
98 const GREATER_THAN_OR_EQUAL_TO = String.fromCharCode(0x2265); 98 const GREATER_THAN_OR_EQUAL_TO = String.fromCharCode(0x2265);
99 const UNMARRIED_PARTNERSHIP_SYMBOL = String.fromCharCode(0x26AF); 99 const UNMARRIED_PARTNERSHIP_SYMBOL = String.fromCharCode(0x26AF);
100 const TRIGRAM_FOR_HEAVEN = String.fromCharCode(0x2630); 100 const TRIGRAM_FOR_HEAVEN = String.fromCharCode(0x2630);
101 101
102 // TODO(petrcermak): Move this to iteration_helpers.html.
103 function lazyMap(list, fn, opt_this) { 102 function lazyMap(list, fn, opt_this) {
104 opt_this = opt_this || this; 103 opt_this = opt_this || this;
105 let result = undefined; 104 let result = undefined;
106 list.forEach(function(item, index) { 105 list.forEach(function(item, index) {
107 const value = fn.call(opt_this, item, index); 106 const value = fn.call(opt_this, item, index);
108 if (value === undefined) return; 107 if (value === undefined) return;
109 if (result === undefined) { 108 if (result === undefined) {
110 result = new Array(list.length); 109 result = new Array(list.length);
111 } 110 }
112 result[index] = value; 111 result[index] = value;
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 // All exports are for testing only. 764 // All exports are for testing only.
766 ProcessNameColumn, 765 ProcessNameColumn,
767 UsedMemoryColumn, 766 UsedMemoryColumn,
768 PeakMemoryColumn, 767 PeakMemoryColumn,
769 ByteStatColumn, 768 ByteStatColumn,
770 AllocatorColumn, 769 AllocatorColumn,
771 TracingColumn, 770 TracingColumn,
772 }; 771 };
773 }); 772 });
774 </script> 773 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698