| 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 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 return this._maximumBoundaries - this._minimumBoundaries; | 1993 return this._maximumBoundaries - this._minimumBoundaries; |
| 1994 } | 1994 } |
| 1995 }; | 1995 }; |
| 1996 | 1996 |
| 1997 /** | 1997 /** |
| 1998 * @unrestricted | 1998 * @unrestricted |
| 1999 */ | 1999 */ |
| 2000 Profiler.HeapSnapshotStatisticsView = class extends UI.VBox { | 2000 Profiler.HeapSnapshotStatisticsView = class extends UI.VBox { |
| 2001 constructor() { | 2001 constructor() { |
| 2002 super(); | 2002 super(); |
| 2003 this.setMinimumSize(50, 25); | 2003 this.element.classList.add('heap-snapshot-statistics-view'); |
| 2004 this._pieChart = new PerfUI.PieChart(150, Profiler.HeapSnapshotStatisticsVie
w._valueFormatter, true); | 2004 this._pieChart = new PerfUI.PieChart(150, Profiler.HeapSnapshotStatisticsVie
w._valueFormatter, true); |
| 2005 this._pieChart.element.classList.add('heap-snapshot-stats-pie-chart'); | 2005 this._pieChart.element.classList.add('heap-snapshot-stats-pie-chart'); |
| 2006 this.element.appendChild(this._pieChart.element); | 2006 this.element.appendChild(this._pieChart.element); |
| 2007 this._labels = this.element.createChild('div', 'heap-snapshot-stats-legend')
; | 2007 this._labels = this.element.createChild('div', 'heap-snapshot-stats-legend')
; |
| 2008 } | 2008 } |
| 2009 | 2009 |
| 2010 /** | 2010 /** |
| 2011 * @param {number} value | 2011 * @param {number} value |
| 2012 * @return {string} | 2012 * @return {string} |
| 2013 */ | 2013 */ |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2090 var name = frameDiv.createChild('div'); | 2090 var name = frameDiv.createChild('div'); |
| 2091 name.textContent = UI.beautifyFunctionName(frame.functionName); | 2091 name.textContent = UI.beautifyFunctionName(frame.functionName); |
| 2092 if (frame.scriptId) { | 2092 if (frame.scriptId) { |
| 2093 var urlElement = this._linkifier.linkifyScriptLocation( | 2093 var urlElement = this._linkifier.linkifyScriptLocation( |
| 2094 this._target, String(frame.scriptId), frame.scriptName, frame.line -
1, frame.column - 1); | 2094 this._target, String(frame.scriptId), frame.scriptName, frame.line -
1, frame.column - 1); |
| 2095 frameDiv.appendChild(urlElement); | 2095 frameDiv.appendChild(urlElement); |
| 2096 } | 2096 } |
| 2097 } | 2097 } |
| 2098 } | 2098 } |
| 2099 }; | 2099 }; |
| OLD | NEW |