| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @implements {Timeline.TimelineModeView} | 6 * @implements {Timeline.TimelineModeView} |
| 7 * @implements {PerfUI.FlameChartDelegate} | 7 * @implements {PerfUI.FlameChartDelegate} |
| 8 * @implements {UI.Searchable} | 8 * @implements {UI.Searchable} |
| 9 * @unrestricted | 9 * @unrestricted |
| 10 */ | 10 */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 this._searchResults; | 23 this._searchResults; |
| 24 this._filters = filters; | 24 this._filters = filters; |
| 25 | 25 |
| 26 this._showMemoryGraphSetting = Common.settings.createSetting('timelineShowMe
mory', false); | 26 this._showMemoryGraphSetting = Common.settings.createSetting('timelineShowMe
mory', false); |
| 27 | 27 |
| 28 // Create main and network flamecharts. | 28 // Create main and network flamecharts. |
| 29 this._networkSplitWidget = new UI.SplitWidget(false, false, 'timelineFlamech
artMainView', 150); | 29 this._networkSplitWidget = new UI.SplitWidget(false, false, 'timelineFlamech
artMainView', 150); |
| 30 | 30 |
| 31 var mainViewGroupExpansionSetting = Common.settings.createSetting('timelineF
lamechartMainViewGroupExpansion', {}); | 31 var mainViewGroupExpansionSetting = Common.settings.createSetting('timelineF
lamechartMainViewGroupExpansion', {}); |
| 32 this._mainDataProvider = new Timeline.TimelineFlameChartDataProvider(filters
); | 32 this._mainDataProvider = new Timeline.TimelineFlameChartDataProvider(filters
); |
| 33 this._mainDataProvider.addEventListener( |
| 34 Timeline.TimelineFlameChartDataProvider.Events.DataChanged, () => this._
mainFlameChart.scheduleUpdate()); |
| 33 this._mainFlameChart = new PerfUI.FlameChart(this._mainDataProvider, this, m
ainViewGroupExpansionSetting); | 35 this._mainFlameChart = new PerfUI.FlameChart(this._mainDataProvider, this, m
ainViewGroupExpansionSetting); |
| 34 this._mainFlameChart.alwaysShowVerticalScroll(); | 36 this._mainFlameChart.alwaysShowVerticalScroll(); |
| 35 this._mainFlameChart.enableRuler(false); | 37 this._mainFlameChart.enableRuler(false); |
| 36 | 38 |
| 37 this._networkFlameChartGroupExpansionSetting = | 39 this._networkFlameChartGroupExpansionSetting = |
| 38 Common.settings.createSetting('timelineFlamechartNetworkViewGroupExpansi
on', {}); | 40 Common.settings.createSetting('timelineFlamechartNetworkViewGroupExpansi
on', {}); |
| 39 this._networkDataProvider = new Timeline.TimelineFlameChartNetworkDataProvid
er(); | 41 this._networkDataProvider = new Timeline.TimelineFlameChartNetworkDataProvid
er(); |
| 40 this._networkFlameChart = new PerfUI.FlameChart( | 42 this._networkFlameChart = new PerfUI.FlameChart( |
| 41 this._networkDataProvider, this, this._networkFlameChartGroupExpansionSe
tting); | 43 this._networkDataProvider, this, this._networkFlameChartGroupExpansionSe
tting); |
| 42 this._networkFlameChart.alwaysShowVerticalScroll(); | 44 this._networkFlameChart.alwaysShowVerticalScroll(); |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 context.translate(this._style.lineWidth < 1 || (this._style.lineWidth & 1)
? 0.5 : 0, 0.5); | 526 context.translate(this._style.lineWidth < 1 || (this._style.lineWidth & 1)
? 0.5 : 0, 0.5); |
| 525 context.beginPath(); | 527 context.beginPath(); |
| 526 context.moveTo(x, height); | 528 context.moveTo(x, height); |
| 527 context.setLineDash(this._style.dashStyle); | 529 context.setLineDash(this._style.dashStyle); |
| 528 context.lineTo(x, context.canvas.height); | 530 context.lineTo(x, context.canvas.height); |
| 529 context.stroke(); | 531 context.stroke(); |
| 530 } | 532 } |
| 531 context.restore(); | 533 context.restore(); |
| 532 } | 534 } |
| 533 }; | 535 }; |
| OLD | NEW |