OLD | NEW |
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/range.html"> | 8 <link rel="import" href="/tracing/base/range.html"> |
9 <link rel="import" href="/tracing/base/sorted_array_utils.html"> | 9 <link rel="import" href="/tracing/base/sorted_array_utils.html"> |
10 <link rel="import" href="/tracing/model/event_container.html"> | 10 <link rel="import" href="/tracing/model/event_container.html"> |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 updateBounds: function() { | 107 updateBounds: function() { |
108 this.bounds.reset(); | 108 this.bounds.reset(); |
109 | 109 |
110 if (this.samples_.length === 0) | 110 if (this.samples_.length === 0) |
111 return; | 111 return; |
112 | 112 |
113 this.bounds.addValue(this.samples_[0].start); | 113 this.bounds.addValue(this.samples_[0].start); |
114 this.bounds.addValue(this.samples_[this.samples_.length - 1].start); | 114 this.bounds.addValue(this.samples_[this.samples_.length - 1].start); |
115 }, | 115 }, |
116 | 116 |
117 findTopmostSlicesInThisContainer: function(eventPredicate, callback, | 117 childEvents: function*() { |
118 opt_this) { | 118 yield * this.samples_; |
119 }, | 119 }, |
120 | |
121 childEvents: function*(eventTypePredicate, opt_this) { | |
122 if (eventTypePredicate.call(opt_this, PowerSample)) | |
123 yield * this.samples_; | |
124 }, | |
125 | |
126 childEventContainers: function*(callback, opt_this) { | |
127 } | |
128 }; | 120 }; |
129 | 121 |
130 return { | 122 return { |
131 PowerSeries: PowerSeries | 123 PowerSeries: PowerSeries |
132 }; | 124 }; |
133 }); | 125 }); |
134 </script> | 126 </script> |
OLD | NEW |