| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 }, | 149 }, |
| 150 | 150 |
| 151 /** | 151 /** |
| 152 * @param {function(!WebInspector.HeapSnapshotNode)} action | 152 * @param {function(!WebInspector.HeapSnapshotNode)} action |
| 153 * @param {boolean=} userRootsOnly | 153 * @param {boolean=} userRootsOnly |
| 154 */ | 154 */ |
| 155 forEachRoot: function(action, userRootsOnly) | 155 forEachRoot: function(action, userRootsOnly) |
| 156 { | 156 { |
| 157 /** | 157 /** |
| 158 * @param {!WebInspector.HeapSnapshotNode} node | 158 * @param {!WebInspector.HeapSnapshotNode} node |
| 159 * @param {!string} name | 159 * @param {string} name |
| 160 * @return {?WebInspector.HeapSnapshotNode} | 160 * @return {?WebInspector.HeapSnapshotNode} |
| 161 */ | 161 */ |
| 162 function getChildNodeByName(node, name) | 162 function getChildNodeByName(node, name) |
| 163 { | 163 { |
| 164 for (var iter = node.edges(); iter.hasNext(); iter.next()) { | 164 for (var iter = node.edges(); iter.hasNext(); iter.next()) { |
| 165 var child = iter.edge.node(); | 165 var child = iter.edge.node(); |
| 166 if (child.name() === name) | 166 if (child.name() === name) |
| 167 return child; | 167 return child; |
| 168 } | 168 } |
| 169 return null; | 169 return null; |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 * @return {boolean} | 815 * @return {boolean} |
| 816 */ | 816 */ |
| 817 isWeak: function() | 817 isWeak: function() |
| 818 { | 818 { |
| 819 return this._edge().isWeak(); | 819 return this._edge().isWeak(); |
| 820 }, | 820 }, |
| 821 | 821 |
| 822 __proto__: WebInspector.HeapSnapshotRetainerEdge.prototype | 822 __proto__: WebInspector.HeapSnapshotRetainerEdge.prototype |
| 823 } | 823 } |
| 824 | 824 |
| OLD | NEW |