| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 return; | 353 return; |
| 354 | 354 |
| 355 var profileNode = searchResult.profileNode; | 355 var profileNode = searchResult.profileNode; |
| 356 profileNode.revealAndSelect(); | 356 profileNode.revealAndSelect(); |
| 357 }, | 357 }, |
| 358 | 358 |
| 359 _ensureFlameChartCreated: function() | 359 _ensureFlameChartCreated: function() |
| 360 { | 360 { |
| 361 if (this._flameChart) | 361 if (this._flameChart) |
| 362 return; | 362 return; |
| 363 this._dataProvider = new WebInspector.CPUFlameChartDataProvider(this.pro
file, this._profileHeader.target()); | 363 this._dataProvider = new WebInspector.CPUFlameChartDataProvider(this.pro
file, this._profileHeader.weakTarget()); |
| 364 this._flameChart = new WebInspector.CPUProfileFlameChart(this._dataProvi
der); | 364 this._flameChart = new WebInspector.CPUProfileFlameChart(this._dataProvi
der); |
| 365 this._flameChart.addEventListener(WebInspector.FlameChart.Events.EntrySe
lected, this._onEntrySelected.bind(this)); | 365 this._flameChart.addEventListener(WebInspector.FlameChart.Events.EntrySe
lected, this._onEntrySelected.bind(this)); |
| 366 }, | 366 }, |
| 367 | 367 |
| 368 /** | 368 /** |
| 369 * @param {!WebInspector.Event} event | 369 * @param {!WebInspector.Event} event |
| 370 */ | 370 */ |
| 371 _onEntrySelected: function(event) | 371 _onEntrySelected: function(event) |
| 372 { | 372 { |
| 373 var entryIndex = event.data; | 373 var entryIndex = event.data; |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 _notifyTempFileReady: function() | 905 _notifyTempFileReady: function() |
| 906 { | 906 { |
| 907 if (this._onTempFileReady) { | 907 if (this._onTempFileReady) { |
| 908 this._onTempFileReady(); | 908 this._onTempFileReady(); |
| 909 this._onTempFileReady = null; | 909 this._onTempFileReady = null; |
| 910 } | 910 } |
| 911 }, | 911 }, |
| 912 | 912 |
| 913 __proto__: WebInspector.ProfileHeader.prototype | 913 __proto__: WebInspector.ProfileHeader.prototype |
| 914 } | 914 } |
| OLD | NEW |