| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 WebInspector.TimelineProfileTree = { }; | 5 WebInspector.TimelineProfileTree = { }; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @constructor | 8 * @constructor |
| 9 */ | 9 */ |
| 10 WebInspector.TimelineProfileTree.Node = function() | 10 WebInspector.TimelineProfileTree.Node = function() |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 165 } |
| 166 tdNode = tdNode.parent; | 166 tdNode = tdNode.parent; |
| 167 buParent = buNode; | 167 buParent = buNode; |
| 168 } | 168 } |
| 169 } | 169 } |
| 170 | 170 |
| 171 // Purge zero self time nodes. | 171 // Purge zero self time nodes. |
| 172 var rootChildren = buRoot.children; | 172 var rootChildren = buRoot.children; |
| 173 for (var item of rootChildren.entries()) { | 173 for (var item of rootChildren.entries()) { |
| 174 if (item[1].selfTime === 0) | 174 if (item[1].selfTime === 0) |
| 175 rootChildren.delete(item[0]); | 175 rootChildren.delete(/** @type {string} */(item[0])); |
| 176 } | 176 } |
| 177 | 177 |
| 178 return buRoot; | 178 return buRoot; |
| 179 | 179 |
| 180 } | 180 } |
| OLD | NEW |