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/base/guid.html"> | 8 <link rel="import" href="/tracing/base/guid.html"> |
9 <link rel="import" href="/tracing/base/range.html"> | 9 <link rel="import" href="/tracing/base/range.html"> |
10 <link rel="import" href="/tracing/model/async_slice_group.html"> | 10 <link rel="import" href="/tracing/model/async_slice_group.html"> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 }, | 66 }, |
67 | 67 |
68 get stableId() { | 68 get stableId() { |
69 return this.parent.stableId + '.' + this.tid; | 69 return this.parent.stableId + '.' + this.tid; |
70 }, | 70 }, |
71 | 71 |
72 compareTo: function(that) { | 72 compareTo: function(that) { |
73 return Thread.compare(this, that); | 73 return Thread.compare(this, that); |
74 }, | 74 }, |
75 | 75 |
76 findTopmostSlicesInThisContainer: function(eventPredicate, callback, | |
77 opt_this) { | |
78 }, | |
79 | |
80 childEventContainers: function*() { | 76 childEventContainers: function*() { |
81 if (this.sliceGroup.length) | 77 if (this.sliceGroup.length) |
82 yield this.sliceGroup; | 78 yield this.sliceGroup; |
83 if (this.kernelSliceGroup.length) | 79 if (this.kernelSliceGroup.length) |
84 yield this.kernelSliceGroup; | 80 yield this.kernelSliceGroup; |
85 if (this.asyncSliceGroup.length) | 81 if (this.asyncSliceGroup.length) |
86 yield this.asyncSliceGroup; | 82 yield this.asyncSliceGroup; |
87 }, | 83 }, |
88 | 84 |
89 childEvents: function*(eventTypePredicate, opt_this) { | 85 childEvents: function*() { |
90 if (this.timeSlices && this.timeSlices.length) { | 86 if (this.timeSlices) |
91 if (eventTypePredicate.call(opt_this, ThreadTimeSlice)) | 87 yield * this.timeSlices; |
92 yield * this.timeSlices; | |
93 } | |
94 }, | 88 }, |
95 | 89 |
96 iterateAllPersistableObjects: function(cb) { | 90 iterateAllPersistableObjects: function(cb) { |
97 cb(this); | 91 cb(this); |
98 if (this.sliceGroup.length) | 92 if (this.sliceGroup.length) |
99 cb(this.sliceGroup); | 93 cb(this.sliceGroup); |
100 this.asyncSliceGroup.viewSubGroups.forEach(cb); | 94 this.asyncSliceGroup.viewSubGroups.forEach(cb); |
101 }, | 95 }, |
102 | 96 |
103 /** | 97 /** |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 return tmp; | 325 return tmp; |
332 | 326 |
333 return x.tid - y.tid; | 327 return x.tid - y.tid; |
334 }; | 328 }; |
335 | 329 |
336 return { | 330 return { |
337 Thread: Thread | 331 Thread: Thread |
338 }; | 332 }; |
339 }); | 333 }); |
340 </script> | 334 </script> |
OLD | NEW |