| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 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="/tracing/base/base.html"> | 7 <link rel="import" href="/tracing/base/base.html"> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 findTelemetryInternalRanges_: function() { | 60 findTelemetryInternalRanges_: function() { |
| 61 this.telemetryInternalRanges_ = []; | 61 this.telemetryInternalRanges_ = []; |
| 62 var start = 0; | 62 var start = 0; |
| 63 for (var thread of Object.values(this.process.threads)) { | 63 for (var thread of Object.values(this.process.threads)) { |
| 64 for (var slice of thread.asyncSliceGroup.getDescendantEvents()) { | 64 for (var slice of thread.asyncSliceGroup.getDescendantEvents()) { |
| 65 if (/^telemetry\.internal\.[^.]*\.start$/.test(slice.title)) { | 65 if (/^telemetry\.internal\.[^.]*\.start$/.test(slice.title)) { |
| 66 start = slice.start; | 66 start = slice.start; |
| 67 } else if (/^telemetry\.internal\.[^.]*\.end$/.test(slice.title) && | 67 } else if (/^telemetry\.internal\.[^.]*\.end$/.test(slice.title) && |
| 68 start !== undefined) { | 68 start !== undefined) { |
| 69 this.telemetryInternalRanges_.push(tr.b.Range.fromExplicitRange( | 69 this.telemetryInternalRanges_.push( |
| 70 start, slice.end)); | 70 tr.b.math.Range.fromExplicitRange(start, slice.end)); |
| 71 start = undefined; | 71 start = undefined; |
| 72 } | 72 } |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 }, | 75 }, |
| 76 | 76 |
| 77 getFrameEventsInRange: function(frametimeType, range) { | 77 getFrameEventsInRange: function(frametimeType, range) { |
| 78 var titleToGet = (frametimeType === MAIN_FRAMETIME_TYPE ? | 78 var titleToGet = (frametimeType === MAIN_FRAMETIME_TYPE ? |
| 79 MAIN_RENDERING_STATS : IMPL_RENDERING_STATS); | 79 MAIN_RENDERING_STATS : IMPL_RENDERING_STATS); |
| 80 | 80 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 107 MAIN_FRAMETIME_TYPE, | 107 MAIN_FRAMETIME_TYPE, |
| 108 IMPL_FRAMETIME_TYPE, | 108 IMPL_FRAMETIME_TYPE, |
| 109 MAIN_RENDERING_STATS, | 109 MAIN_RENDERING_STATS, |
| 110 IMPL_RENDERING_STATS, | 110 IMPL_RENDERING_STATS, |
| 111 | 111 |
| 112 getSlicesIntersectingRange, | 112 getSlicesIntersectingRange, |
| 113 getFrametimeDataFromEvents, | 113 getFrametimeDataFromEvents, |
| 114 }; | 114 }; |
| 115 }); | 115 }); |
| 116 </script> | 116 </script> |
| OLD | NEW |