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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 if (singleProfileMode) { | 414 if (singleProfileMode) { |
415 this._launcherView = this._createLauncherView(); | 415 this._launcherView = this._createLauncherView(); |
416 this._registerProfileType(/** @type {!WebInspector.ProfileType} */ (type
)); | 416 this._registerProfileType(/** @type {!WebInspector.ProfileType} */ (type
)); |
417 this._selectedProfileType = type; | 417 this._selectedProfileType = type; |
418 this._updateProfileTypeSpecificUI(); | 418 this._updateProfileTypeSpecificUI(); |
419 } else { | 419 } else { |
420 this._launcherView = new WebInspector.MultiProfileLauncherView(this); | 420 this._launcherView = new WebInspector.MultiProfileLauncherView(this); |
421 this._launcherView.addEventListener(WebInspector.MultiProfileLauncherVie
w.EventTypes.ProfileTypeSelected, this._onProfileTypeSelected, this); | 421 this._launcherView.addEventListener(WebInspector.MultiProfileLauncherVie
w.EventTypes.ProfileTypeSelected, this._onProfileTypeSelected, this); |
422 | 422 |
423 this._registerProfileType(new WebInspector.CPUProfileType()); | 423 this._registerProfileType(new WebInspector.CPUProfileType()); |
424 if (!WebInspector.WorkerManager.isWorkerFrontend()) | |
425 this._registerProfileType(new WebInspector.CSSSelectorProfileType())
; | |
426 this._registerProfileType(new WebInspector.HeapSnapshotProfileType()); | 424 this._registerProfileType(new WebInspector.HeapSnapshotProfileType()); |
427 this._registerProfileType(new WebInspector.TrackingHeapSnapshotProfileTy
pe(this)); | 425 this._registerProfileType(new WebInspector.TrackingHeapSnapshotProfileTy
pe(this)); |
428 if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.exper
imentsSettings.canvasInspection.isEnabled()) | 426 if (!WebInspector.WorkerManager.isWorkerFrontend() && WebInspector.exper
imentsSettings.canvasInspection.isEnabled()) |
429 this._registerProfileType(new WebInspector.CanvasProfileType()); | 427 this._registerProfileType(new WebInspector.CanvasProfileType()); |
430 } | 428 } |
431 | 429 |
432 this._reset(); | 430 this._reset(); |
433 | 431 |
434 this._createFileSelectorElement(); | 432 this._createFileSelectorElement(); |
435 this.element.addEventListener("contextmenu", this._handleContextMenuEvent.bi
nd(this), true); | 433 this.element.addEventListener("contextmenu", this._handleContextMenuEvent.bi
nd(this), true); |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 | 1345 |
1348 WebInspector.CPUProfilerPanel.prototype = { | 1346 WebInspector.CPUProfilerPanel.prototype = { |
1349 __proto__: WebInspector.ProfilesPanel.prototype | 1347 __proto__: WebInspector.ProfilesPanel.prototype |
1350 } | 1348 } |
1351 | 1349 |
1352 | 1350 |
1353 /** | 1351 /** |
1354 * @constructor | 1352 * @constructor |
1355 * @extends {WebInspector.ProfilesPanel} | 1353 * @extends {WebInspector.ProfilesPanel} |
1356 */ | 1354 */ |
1357 WebInspector.CSSSelectorProfilerPanel = function() | |
1358 { | |
1359 WebInspector.ProfilesPanel.call(this, "css-profiler", new WebInspector.CSSSe
lectorProfileType()); | |
1360 } | |
1361 | |
1362 WebInspector.CSSSelectorProfilerPanel.prototype = { | |
1363 __proto__: WebInspector.ProfilesPanel.prototype | |
1364 } | |
1365 | |
1366 | |
1367 /** | |
1368 * @constructor | |
1369 * @extends {WebInspector.ProfilesPanel} | |
1370 */ | |
1371 WebInspector.HeapProfilerPanel = function() | 1355 WebInspector.HeapProfilerPanel = function() |
1372 { | 1356 { |
1373 var heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType(); | 1357 var heapSnapshotProfileType = new WebInspector.HeapSnapshotProfileType(); |
1374 WebInspector.ProfilesPanel.call(this, "heap-profiler", heapSnapshotProfileTy
pe); | 1358 WebInspector.ProfilesPanel.call(this, "heap-profiler", heapSnapshotProfileTy
pe); |
1375 this._singleProfileMode = false; | 1359 this._singleProfileMode = false; |
1376 this._registerProfileType(new WebInspector.TrackingHeapSnapshotProfileType(t
his)); | 1360 this._registerProfileType(new WebInspector.TrackingHeapSnapshotProfileType(t
his)); |
1377 this._launcherView.addEventListener(WebInspector.MultiProfileLauncherView.Ev
entTypes.ProfileTypeSelected, this._onProfileTypeSelected, this); | 1361 this._launcherView.addEventListener(WebInspector.MultiProfileLauncherView.Ev
entTypes.ProfileTypeSelected, this._onProfileTypeSelected, this); |
1378 this._launcherView._profileTypeChanged(heapSnapshotProfileType); | 1362 this._launcherView._profileTypeChanged(heapSnapshotProfileType); |
1379 } | 1363 } |
1380 | 1364 |
(...skipping 17 matching lines...) Expand all Loading... |
1398 } | 1382 } |
1399 | 1383 |
1400 WebInspector.CanvasProfilerPanel.prototype = { | 1384 WebInspector.CanvasProfilerPanel.prototype = { |
1401 __proto__: WebInspector.ProfilesPanel.prototype | 1385 __proto__: WebInspector.ProfilesPanel.prototype |
1402 } | 1386 } |
1403 | 1387 |
1404 | 1388 |
1405 importScript("ProfileDataGridTree.js"); | 1389 importScript("ProfileDataGridTree.js"); |
1406 importScript("BottomUpProfileDataGridTree.js"); | 1390 importScript("BottomUpProfileDataGridTree.js"); |
1407 importScript("CPUProfileView.js"); | 1391 importScript("CPUProfileView.js"); |
1408 importScript("CSSSelectorProfileView.js"); | |
1409 importScript("FlameChart.js"); | 1392 importScript("FlameChart.js"); |
1410 importScript("HeapSnapshot.js"); | 1393 importScript("HeapSnapshot.js"); |
1411 importScript("HeapSnapshotDataGrids.js"); | 1394 importScript("HeapSnapshotDataGrids.js"); |
1412 importScript("HeapSnapshotGridNodes.js"); | 1395 importScript("HeapSnapshotGridNodes.js"); |
1413 importScript("HeapSnapshotLoader.js"); | 1396 importScript("HeapSnapshotLoader.js"); |
1414 importScript("HeapSnapshotProxy.js"); | 1397 importScript("HeapSnapshotProxy.js"); |
1415 importScript("HeapSnapshotView.js"); | 1398 importScript("HeapSnapshotView.js"); |
1416 importScript("HeapSnapshotWorkerDispatcher.js"); | 1399 importScript("HeapSnapshotWorkerDispatcher.js"); |
1417 importScript("JSHeapSnapshot.js"); | 1400 importScript("JSHeapSnapshot.js"); |
1418 importScript("ProfileLauncherView.js"); | 1401 importScript("ProfileLauncherView.js"); |
1419 importScript("TopDownProfileDataGridTree.js"); | 1402 importScript("TopDownProfileDataGridTree.js"); |
1420 importScript("CanvasProfileView.js"); | 1403 importScript("CanvasProfileView.js"); |
OLD | NEW |