| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 WebInspector.ProfileTypeRegistry = function() { | 502 WebInspector.ProfileTypeRegistry = function() { |
| 503 this._profileTypes = []; | 503 this._profileTypes = []; |
| 504 | 504 |
| 505 this.cpuProfileType = new WebInspector.CPUProfileType(); | 505 this.cpuProfileType = new WebInspector.CPUProfileType(); |
| 506 this._addProfileType(this.cpuProfileType); | 506 this._addProfileType(this.cpuProfileType); |
| 507 this.heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType(); | 507 this.heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType(); |
| 508 this._addProfileType(this.heapSnapshotProfileType); | 508 this._addProfileType(this.heapSnapshotProfileType); |
| 509 this.trackingHeapSnapshotProfileType = new WebInspector.TrackingHeapSnapshot
ProfileType(); | 509 this.trackingHeapSnapshotProfileType = new WebInspector.TrackingHeapSnapshot
ProfileType(); |
| 510 this._addProfileType(this.trackingHeapSnapshotProfileType); | 510 this._addProfileType(this.trackingHeapSnapshotProfileType); |
| 511 | 511 |
| 512 if (Capabilities.isMainFrontend && WebInspector.experimentsSettings.canvasIn
spection.isEnabled()) { | 512 if (!WebInspector.isWorkerFrontend() && WebInspector.experimentsSettings.can
vasInspection.isEnabled()) { |
| 513 this.canvasProfileType = new WebInspector.CanvasProfileType(); | 513 this.canvasProfileType = new WebInspector.CanvasProfileType(); |
| 514 this._addProfileType(this.canvasProfileType); | 514 this._addProfileType(this.canvasProfileType); |
| 515 } | 515 } |
| 516 } | 516 } |
| 517 | 517 |
| 518 WebInspector.ProfileTypeRegistry.prototype = { | 518 WebInspector.ProfileTypeRegistry.prototype = { |
| 519 /** | 519 /** |
| 520 * @param {!WebInspector.ProfileType} profileType | 520 * @param {!WebInspector.ProfileType} profileType |
| 521 */ | 521 */ |
| 522 _addProfileType: function(profileType) | 522 _addProfileType: function(profileType) |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 importScript("HeapSnapshotCommon.js"); | 1355 importScript("HeapSnapshotCommon.js"); |
| 1356 importScript("HeapSnapshotProxy.js"); | 1356 importScript("HeapSnapshotProxy.js"); |
| 1357 importScript("HeapSnapshotDataGrids.js"); | 1357 importScript("HeapSnapshotDataGrids.js"); |
| 1358 importScript("HeapSnapshotGridNodes.js"); | 1358 importScript("HeapSnapshotGridNodes.js"); |
| 1359 importScript("HeapSnapshotView.js"); | 1359 importScript("HeapSnapshotView.js"); |
| 1360 importScript("ProfileLauncherView.js"); | 1360 importScript("ProfileLauncherView.js"); |
| 1361 importScript("CanvasProfileView.js"); | 1361 importScript("CanvasProfileView.js"); |
| 1362 importScript("CanvasReplayStateView.js"); | 1362 importScript("CanvasReplayStateView.js"); |
| 1363 | 1363 |
| 1364 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry
(); | 1364 WebInspector.ProfileTypeRegistry.instance = new WebInspector.ProfileTypeRegistry
(); |
| OLD | NEW |