OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 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/ui/tracks/process_memory_dump_track.html"> | 8 <link rel="import" href="/tracing/ui/tracks/process_memory_dump_track.html"> |
9 <link rel="import" href="/tracing/ui/tracks/process_track_base.html"> | 9 <link rel="import" href="/tracing/ui/tracks/process_track_base.html"> |
10 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> | 10 <link rel="import" href="/tracing/ui/base/draw_helpers.html"> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 tr.ui.tracks.ProcessTrackBase.prototype.addContainersToTrackMap.apply( | 110 tr.ui.tracks.ProcessTrackBase.prototype.addContainersToTrackMap.apply( |
111 this, arguments); | 111 this, arguments); |
112 containerToTrackMap.addContainer(this.process, this); | 112 containerToTrackMap.addContainer(this.process, this); |
113 }, | 113 }, |
114 | 114 |
115 appendMemoryDumpTrack_: function() { | 115 appendMemoryDumpTrack_: function() { |
116 var processMemoryDumps = this.process.memoryDumps; | 116 var processMemoryDumps = this.process.memoryDumps; |
117 if (processMemoryDumps.length) { | 117 if (processMemoryDumps.length) { |
118 var pmdt = new tr.ui.tracks.ProcessMemoryDumpTrack(this.viewport_); | 118 var pmdt = new tr.ui.tracks.ProcessMemoryDumpTrack(this.viewport_); |
119 pmdt.memoryDumps = processMemoryDumps; | 119 pmdt.memoryDumps = processMemoryDumps; |
120 this.appendChild(pmdt); | 120 Polymer.dom(this).appendChild(pmdt); |
121 } | 121 } |
122 }, | 122 }, |
123 | 123 |
124 addIntersectingEventsInRangeToSelectionInWorldSpace: function( | 124 addIntersectingEventsInRangeToSelectionInWorldSpace: function( |
125 loWX, hiWX, viewPixWidthWorld, selection) { | 125 loWX, hiWX, viewPixWidthWorld, selection) { |
126 function onPickHit(instantEvent) { | 126 function onPickHit(instantEvent) { |
127 selection.push(instantEvent); | 127 selection.push(instantEvent); |
128 } | 128 } |
129 var instantEventWidth = 2 * viewPixWidthWorld; | 129 var instantEventWidth = 2 * viewPixWidthWorld; |
130 tr.b.iterateOverIntersectingIntervals(this.processBase.instantEvents, | 130 tr.b.iterateOverIntersectingIntervals(this.processBase.instantEvents, |
(...skipping 15 matching lines...) Expand all Loading... |
146 apply(this, arguments); | 146 apply(this, arguments); |
147 } | 147 } |
148 }; | 148 }; |
149 | 149 |
150 return { | 150 return { |
151 ProcessTrack: ProcessTrack | 151 ProcessTrack: ProcessTrack |
152 }; | 152 }; |
153 }); | 153 }); |
154 </script> | 154 </script> |
155 | 155 |
OLD | NEW |