Chromium Code Reviews| 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 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.Searchable} | 7 * @implements {WebInspector.Searchable} |
| 8 * @extends {WebInspector.ProfileView} | 8 * @extends {WebInspector.ProfileView} |
| 9 * @param {!WebInspector.SamplingHeapProfileHeader} profileHeader | 9 * @param {!WebInspector.SamplingHeapProfileHeader} profileHeader |
| 10 */ | 10 */ |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 __proto__: WebInspector.WritableProfileHeader.prototype | 214 __proto__: WebInspector.WritableProfileHeader.prototype |
| 215 } | 215 } |
| 216 | 216 |
| 217 /** | 217 /** |
| 218 * @constructor | 218 * @constructor |
| 219 * @extends {WebInspector.ProfileNode} | 219 * @extends {WebInspector.ProfileNode} |
| 220 * @param {!HeapProfilerAgent.SamplingHeapProfileNode} node | 220 * @param {!HeapProfilerAgent.SamplingHeapProfileNode} node |
| 221 */ | 221 */ |
| 222 WebInspector.SamplingHeapProfileNode = function(node) | 222 WebInspector.SamplingHeapProfileNode = function(node) |
| 223 { | 223 { |
| 224 WebInspector.ProfileNode.call(this, node.functionName, node.scriptId, node.u rl, node.lineNumber, node.columnNumber); | 224 WebInspector.ProfileNode.call(this, node.callFrame); |
|
alph
2016/07/14 17:56:00
I guess we need to retain backward compatibility i
kozy
2016/07/14 21:35:04
Done.
| |
| 225 this.self = node.selfSize; | 225 this.self = node.selfSize; |
| 226 this.callUID = `${this.frame.functionName}@${this.frame.scriptId}:${this.fra me.lineNumber}`; | 226 this.callUID = `${this.frame.functionName}@${this.frame.scriptId}:${this.fra me.lineNumber}`; |
| 227 } | 227 } |
| 228 | 228 |
| 229 WebInspector.SamplingHeapProfileNode.prototype = { | 229 WebInspector.SamplingHeapProfileNode.prototype = { |
| 230 __proto__: WebInspector.ProfileNode.prototype | 230 __proto__: WebInspector.ProfileNode.prototype |
| 231 } | 231 } |
| 232 | 232 |
| 233 /** | 233 /** |
| 234 * @constructor | 234 * @constructor |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 423 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total)); | 423 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total)); |
| 424 var linkifier = new WebInspector.Linkifier(); | 424 var linkifier = new WebInspector.Linkifier(); |
| 425 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrameForTime line(this._target, node.frame).textContent; | 425 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrameForTime line(this._target, node.frame).textContent; |
| 426 linkifier.dispose(); | 426 linkifier.dispose(); |
| 427 pushEntryInfoRow(WebInspector.UIString("URL"), text); | 427 pushEntryInfoRow(WebInspector.UIString("URL"), text); |
| 428 return entryInfo; | 428 return entryInfo; |
| 429 }, | 429 }, |
| 430 | 430 |
| 431 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype | 431 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype |
| 432 } | 432 } |
| OLD | NEW |