| 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 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 /** | 1741 /** |
| 1742 * @constructor | 1742 * @constructor |
| 1743 * @extends {WebInspector.VBox} | 1743 * @extends {WebInspector.VBox} |
| 1744 * @param {!WebInspector.HeapProfileHeader} heapProfileHeader | 1744 * @param {!WebInspector.HeapProfileHeader} heapProfileHeader |
| 1745 */ | 1745 */ |
| 1746 WebInspector.HeapTrackingOverviewGrid = function(heapProfileHeader) | 1746 WebInspector.HeapTrackingOverviewGrid = function(heapProfileHeader) |
| 1747 { | 1747 { |
| 1748 WebInspector.VBox.call(this); | 1748 WebInspector.VBox.call(this); |
| 1749 this.registerRequiredCSS("flameChart.css"); | |
| 1750 this.element.id = "heap-recording-view"; | 1749 this.element.id = "heap-recording-view"; |
| 1751 this.element.classList.add("heap-tracking-overview"); | 1750 this.element.classList.add("heap-tracking-overview"); |
| 1752 | 1751 |
| 1753 this._overviewContainer = this.element.createChild("div", "overview-containe
r"); | 1752 this._overviewContainer = this.element.createChild("div", "heap-overview-con
tainer"); |
| 1754 this._overviewGrid = new WebInspector.OverviewGrid("heap-recording"); | 1753 this._overviewGrid = new WebInspector.OverviewGrid("heap-recording"); |
| 1755 this._overviewGrid.element.classList.add("fill"); | 1754 this._overviewGrid.element.classList.add("fill"); |
| 1756 | 1755 |
| 1757 this._overviewCanvas = this._overviewContainer.createChild("canvas", "heap-r
ecording-overview-canvas"); | 1756 this._overviewCanvas = this._overviewContainer.createChild("canvas", "heap-r
ecording-overview-canvas"); |
| 1758 this._overviewContainer.appendChild(this._overviewGrid.element); | 1757 this._overviewContainer.appendChild(this._overviewGrid.element); |
| 1759 this._overviewCalculator = new WebInspector.HeapTrackingOverviewGrid.Overvie
wCalculator(); | 1758 this._overviewCalculator = new WebInspector.HeapTrackingOverviewGrid.Overvie
wCalculator(); |
| 1760 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.WindowC
hanged, this._onWindowChanged, this); | 1759 this._overviewGrid.addEventListener(WebInspector.OverviewGrid.Events.WindowC
hanged, this._onWindowChanged, this); |
| 1761 | 1760 |
| 1762 this._profileSamples = heapProfileHeader._profileSamples; | 1761 this._profileSamples = heapProfileHeader._profileSamples; |
| 1763 if (heapProfileHeader.profileType().profileBeingRecorded() === heapProfileHe
ader) { | 1762 if (heapProfileHeader.profileType().profileBeingRecorded() === heapProfileHe
ader) { |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2207 name.textContent = frame.functionName; | 2206 name.textContent = frame.functionName; |
| 2208 if (frame.scriptId) { | 2207 if (frame.scriptId) { |
| 2209 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; | 2208 var urlElement = this._linkifier.linkifyScriptLocation(this._tar
get, String(frame.scriptId), frame.scriptName, frame.line - 1, frame.column - 1)
; |
| 2210 frameDiv.appendChild(urlElement); | 2209 frameDiv.appendChild(urlElement); |
| 2211 } | 2210 } |
| 2212 } | 2211 } |
| 2213 }, | 2212 }, |
| 2214 | 2213 |
| 2215 __proto__: WebInspector.View.prototype | 2214 __proto__: WebInspector.View.prototype |
| 2216 } | 2215 } |
| OLD | NEW |