| 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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 | 2075 |
| 2076 | 2076 |
| 2077 /** | 2077 /** |
| 2078 * @constructor | 2078 * @constructor |
| 2079 * @extends {WebInspector.VBox} | 2079 * @extends {WebInspector.VBox} |
| 2080 */ | 2080 */ |
| 2081 WebInspector.HeapSnapshotStatisticsView = function() | 2081 WebInspector.HeapSnapshotStatisticsView = function() |
| 2082 { | 2082 { |
| 2083 WebInspector.VBox.call(this); | 2083 WebInspector.VBox.call(this); |
| 2084 this.setMinimumSize(50, 25); | 2084 this.setMinimumSize(50, 25); |
| 2085 this._pieChart = new WebInspector.PieChart(); | 2085 this._pieChart = new WebInspector.PieChart(150); |
| 2086 this._pieChart.setSize(150); | |
| 2087 this.element.appendChild(this._pieChart.element); | 2086 this.element.appendChild(this._pieChart.element); |
| 2088 this._labels = this.element.createChild("div", "heap-snapshot-stats-legend")
; | 2087 this._labels = this.element.createChild("div", "heap-snapshot-stats-legend")
; |
| 2089 } | 2088 } |
| 2090 | 2089 |
| 2091 WebInspector.HeapSnapshotStatisticsView.prototype = { | 2090 WebInspector.HeapSnapshotStatisticsView.prototype = { |
| 2092 /** | 2091 /** |
| 2093 * @param {number} value | 2092 * @param {number} value |
| 2094 */ | 2093 */ |
| 2095 setTotal: function(value) | 2094 setTotal: function(value) |
| 2096 { | 2095 { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 name.textContent = frame.functionName; | 2169 name.textContent = frame.functionName; |
| 2171 if (frame.scriptId) { | 2170 if (frame.scriptId) { |
| 2172 var urlElement = this._linkifier.linkifyScriptLocation(this._wea
kTarget.get(), String(frame.scriptId), frame.scriptName, frame.line - 1, frame.c
olumn - 1); | 2171 var urlElement = this._linkifier.linkifyScriptLocation(this._wea
kTarget.get(), String(frame.scriptId), frame.scriptName, frame.line - 1, frame.c
olumn - 1); |
| 2173 frameDiv.appendChild(urlElement); | 2172 frameDiv.appendChild(urlElement); |
| 2174 } | 2173 } |
| 2175 } | 2174 } |
| 2176 }, | 2175 }, |
| 2177 | 2176 |
| 2178 __proto__: WebInspector.View.prototype | 2177 __proto__: WebInspector.View.prototype |
| 2179 } | 2178 } |
| OLD | NEW |