OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 11 matching lines...) Expand all Loading... |
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 /** | 31 /** |
| 32 * FIXME: ES5 strict mode check is suppressed due to multiple uses of arguments.
callee. |
| 33 * @fileoverview |
| 34 * @suppress {es5Strict} |
| 35 */ |
| 36 |
| 37 /** |
32 * @constructor | 38 * @constructor |
33 * @extends {WebInspector.VBox} | 39 * @extends {WebInspector.VBox} |
34 * @param {!WebInspector.ProfileType.DataDisplayDelegate} dataDisplayDelegate | 40 * @param {!WebInspector.ProfileType.DataDisplayDelegate} dataDisplayDelegate |
35 * @param {!WebInspector.HeapProfileHeader} profile | 41 * @param {!WebInspector.HeapProfileHeader} profile |
36 */ | 42 */ |
37 WebInspector.HeapSnapshotView = function(dataDisplayDelegate, profile) | 43 WebInspector.HeapSnapshotView = function(dataDisplayDelegate, profile) |
38 { | 44 { |
39 WebInspector.VBox.call(this); | 45 WebInspector.VBox.call(this); |
40 | 46 |
41 this.element.classList.add("heap-snapshot-view"); | 47 this.element.classList.add("heap-snapshot-view"); |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 return WebInspector.UIString("HEAP SNAPSHOTS"); | 1197 return WebInspector.UIString("HEAP SNAPSHOTS"); |
1192 }, | 1198 }, |
1193 | 1199 |
1194 get description() | 1200 get description() |
1195 { | 1201 { |
1196 return WebInspector.UIString("Heap snapshot profiles show memory distrib
ution among your page's JavaScript objects and related DOM nodes."); | 1202 return WebInspector.UIString("Heap snapshot profiles show memory distrib
ution among your page's JavaScript objects and related DOM nodes."); |
1197 }, | 1203 }, |
1198 | 1204 |
1199 /** | 1205 /** |
1200 * @override | 1206 * @override |
1201 * @param {!string} title | 1207 * @param {string} title |
1202 * @return {!WebInspector.ProfileHeader} | 1208 * @return {!WebInspector.ProfileHeader} |
1203 */ | 1209 */ |
1204 createProfileLoadedFromFile: function(title) | 1210 createProfileLoadedFromFile: function(title) |
1205 { | 1211 { |
1206 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetMan
ager.activeTarget()); | 1212 var target = /** @type {!WebInspector.Target} */ (WebInspector.targetMan
ager.activeTarget()); |
1207 return new WebInspector.HeapProfileHeader(target, this, title); | 1213 return new WebInspector.HeapProfileHeader(target, this, title); |
1208 }, | 1214 }, |
1209 | 1215 |
1210 _takeHeapSnapshot: function(callback) | 1216 _takeHeapSnapshot: function(callback) |
1211 { | 1217 { |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 urlElement = this._linkifier.linkifyRawLocation(rawLocation)
; | 2276 urlElement = this._linkifier.linkifyRawLocation(rawLocation)
; |
2271 if (!urlElement) | 2277 if (!urlElement) |
2272 urlElement = this._linkifier.linkifyLocation(this._target, f
rame.scriptName, frame.line - 1, frame.column - 1); | 2278 urlElement = this._linkifier.linkifyLocation(this._target, f
rame.scriptName, frame.line - 1, frame.column - 1); |
2273 frameDiv.appendChild(urlElement); | 2279 frameDiv.appendChild(urlElement); |
2274 } | 2280 } |
2275 } | 2281 } |
2276 }, | 2282 }, |
2277 | 2283 |
2278 __proto__: WebInspector.View.prototype | 2284 __proto__: WebInspector.View.prototype |
2279 } | 2285 } |
OLD | NEW |