OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 16 matching lines...) Expand all Loading... |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 importScript("../sdk/CPUProfileModel.js"); | 32 importScript("../sdk/CPUProfileModel.js"); |
33 importScript("CountersGraph.js"); | 33 importScript("CountersGraph.js"); |
34 importScript("Layers3DView.js"); | 34 importScript("Layers3DView.js"); |
35 importScript("MemoryCountersGraph.js"); | 35 importScript("MemoryCountersGraph.js"); |
36 importScript("TimelineModel.js"); | 36 importScript("TimelineModel.js"); |
| 37 importScript("TimelineModelImpl.js"); |
37 importScript("TimelineJSProfile.js"); | 38 importScript("TimelineJSProfile.js"); |
38 importScript("TimelineOverviewPane.js"); | 39 importScript("TimelineOverviewPane.js"); |
39 importScript("TimelinePresentationModel.js"); | 40 importScript("TimelinePresentationModel.js"); |
40 importScript("TimelineFrameModel.js"); | 41 importScript("TimelineFrameModel.js"); |
41 importScript("TimelineEventOverview.js"); | 42 importScript("TimelineEventOverview.js"); |
42 importScript("TimelineFrameOverview.js"); | 43 importScript("TimelineFrameOverview.js"); |
43 importScript("TimelineMemoryOverview.js"); | 44 importScript("TimelineMemoryOverview.js"); |
44 importScript("TimelinePowerGraph.js"); | 45 importScript("TimelinePowerGraph.js"); |
45 importScript("TimelinePowerOverview.js"); | 46 importScript("TimelinePowerOverview.js"); |
46 importScript("TimelineFlameChart.js"); | 47 importScript("TimelineFlameChart.js"); |
(...skipping 18 matching lines...) Expand all Loading... |
65 this.registerRequiredCSS("timelinePanel.css"); | 66 this.registerRequiredCSS("timelinePanel.css"); |
66 this.registerRequiredCSS("layersPanel.css"); | 67 this.registerRequiredCSS("layersPanel.css"); |
67 this.registerRequiredCSS("filter.css"); | 68 this.registerRequiredCSS("filter.css"); |
68 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f
alse); | 69 this.element.addEventListener("contextmenu", this._contextMenu.bind(this), f
alse); |
69 | 70 |
70 this._detailsLinkifier = new WebInspector.Linkifier(); | 71 this._detailsLinkifier = new WebInspector.Linkifier(); |
71 this._windowStartTime = 0; | 72 this._windowStartTime = 0; |
72 this._windowEndTime = Infinity; | 73 this._windowEndTime = Infinity; |
73 | 74 |
74 // Create model. | 75 // Create model. |
75 this._model = new WebInspector.TimelineModel(WebInspector.timelineManager); | 76 this._model = new WebInspector.TimelineModelImpl(WebInspector.timelineManage
r); |
76 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar
ted, this._onRecordingStarted, this); | 77 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStar
ted, this._onRecordingStarted, this); |
77 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStop
ped, this._onRecordingStopped, this); | 78 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingStop
ped, this._onRecordingStopped, this); |
78 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordsCleare
d, this._onRecordsCleared, this); | 79 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordsCleare
d, this._onRecordsCleared, this); |
79 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingProg
ress, this._onRecordingProgress, this); | 80 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordingProg
ress, this._onRecordingProgress, this); |
80 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordFilterC
hanged, this._refreshViews, this); | 81 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordFilterC
hanged, this._refreshViews, this); |
81 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordAdded,
this._onRecordAdded, this); | 82 this._model.addEventListener(WebInspector.TimelineModel.Events.RecordAdded,
this._onRecordAdded, this); |
82 | 83 |
83 this._model.target().profilingLock.addEventListener(WebInspector.Lock.Events
.StateChanged, this._onProfilingStateChanged, this); | 84 this._model.target().profilingLock.addEventListener(WebInspector.Lock.Events
.StateChanged, this._onProfilingStateChanged, this); |
84 | 85 |
85 this._categoryFilter = new WebInspector.TimelineCategoryFilter(); | 86 this._categoryFilter = new WebInspector.TimelineCategoryFilter(); |
(...skipping 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 * @param {!WebInspector.TimelineModel.Record} record | 1440 * @param {!WebInspector.TimelineModel.Record} record |
1440 * @return {boolean} | 1441 * @return {boolean} |
1441 */ | 1442 */ |
1442 accept: function(record) | 1443 accept: function(record) |
1443 { | 1444 { |
1444 return !this._hiddenRecords[record.type()]; | 1445 return !this._hiddenRecords[record.type()]; |
1445 }, | 1446 }, |
1446 | 1447 |
1447 __proto__: WebInspector.TimelineModel.Filter.prototype | 1448 __proto__: WebInspector.TimelineModel.Filter.prototype |
1448 } | 1449 } |
OLD | NEW |