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 12 matching lines...) Expand all Loading... |
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
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("CountersGraph.js"); | 32 importScript("CountersGraph.js"); |
33 importScript("DOMCountersGraph.js"); | 33 importScript("MemoryCountersGraph.js"); |
34 importScript("PieChart.js"); | 34 importScript("PieChart.js"); |
35 importScript("TimelineModel.js"); | 35 importScript("TimelineModel.js"); |
36 importScript("TimelineOverviewPane.js"); | 36 importScript("TimelineOverviewPane.js"); |
37 importScript("TimelinePresentationModel.js"); | 37 importScript("TimelinePresentationModel.js"); |
38 importScript("TimelineFrameModel.js"); | 38 importScript("TimelineFrameModel.js"); |
39 importScript("TimelineEventOverview.js"); | 39 importScript("TimelineEventOverview.js"); |
40 importScript("TimelineFrameOverview.js"); | 40 importScript("TimelineFrameOverview.js"); |
41 importScript("TimelineMemoryOverview.js"); | 41 importScript("TimelineMemoryOverview.js"); |
42 importScript("TimelineFlameChart.js"); | 42 importScript("TimelineFlameChart.js"); |
43 importScript("TimelineUIUtils.js"); | 43 importScript("TimelineUIUtils.js"); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 case WebInspector.TimelinePanel.Mode.Events: | 251 case WebInspector.TimelinePanel.Mode.Events: |
252 views.overviewView = new WebInspector.TimelineEventOverview(this
._model); | 252 views.overviewView = new WebInspector.TimelineEventOverview(this
._model); |
253 views.mainViews = [this._timelineView()]; | 253 views.mainViews = [this._timelineView()]; |
254 break; | 254 break; |
255 case WebInspector.TimelinePanel.Mode.Frames: | 255 case WebInspector.TimelinePanel.Mode.Frames: |
256 views.overviewView = new WebInspector.TimelineFrameOverview(this
._model, this._frameModel()); | 256 views.overviewView = new WebInspector.TimelineFrameOverview(this
._model, this._frameModel()); |
257 views.mainViews = [this._timelineView()]; | 257 views.mainViews = [this._timelineView()]; |
258 break; | 258 break; |
259 case WebInspector.TimelinePanel.Mode.Memory: | 259 case WebInspector.TimelinePanel.Mode.Memory: |
260 views.overviewView = new WebInspector.TimelineMemoryOverview(thi
s._model); | 260 views.overviewView = new WebInspector.TimelineMemoryOverview(thi
s._model); |
261 views.mainViews = [this._timelineView(), new WebInspector.DOMCou
ntersGraph(this, this._model)]; | 261 views.mainViews = [this._timelineView(), new WebInspector.Memory
CountersGraph(this, this._model)]; |
262 break; | 262 break; |
263 case WebInspector.TimelinePanel.Mode.FlameChart: | 263 case WebInspector.TimelinePanel.Mode.FlameChart: |
264 views.overviewView = new WebInspector.TimelineFrameOverview(this
._model, this._frameModel()); | 264 views.overviewView = new WebInspector.TimelineFrameOverview(this
._model, this._frameModel()); |
265 views.mainViews = [new WebInspector.TimelineFlameChart(this, thi
s._model, this._frameModel())]; | 265 views.mainViews = [new WebInspector.TimelineFlameChart(this, thi
s._model, this._frameModel())]; |
266 break; | 266 break; |
267 default: | 267 default: |
268 console.assert(false, "Unknown mode: " + mode); | 268 console.assert(false, "Unknown mode: " + mode); |
269 } | 269 } |
270 for (var i = 0; i < views.mainViews.length; ++i) | 270 for (var i = 0; i < views.mainViews.length; ++i) |
271 views.mainViews[i].addEventListener(WebInspector.SplitView.Event
s.SidebarSizeChanged, this._sidebarResized, this); | 271 views.mainViews[i].addEventListener(WebInspector.SplitView.Event
s.SidebarSizeChanged, this._sidebarResized, this); |
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1110 * @param {!WebInspector.TimelineModel.Record} record | 1110 * @param {!WebInspector.TimelineModel.Record} record |
1111 * @return {boolean} | 1111 * @return {boolean} |
1112 */ | 1112 */ |
1113 accept: function(record) | 1113 accept: function(record) |
1114 { | 1114 { |
1115 return !this._hiddenRecords[record.type]; | 1115 return !this._hiddenRecords[record.type]; |
1116 }, | 1116 }, |
1117 | 1117 |
1118 __proto__: WebInspector.TimelineModel.Filter.prototype | 1118 __proto__: WebInspector.TimelineModel.Filter.prototype |
1119 } | 1119 } |
OLD | NEW |