Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 402653002: Delete TimelineTracingView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated TestExpectations to include virtual/ Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 importScript("TimelineFrameModel.js"); 41 importScript("TimelineFrameModel.js");
42 importScript("TimelineEventOverview.js"); 42 importScript("TimelineEventOverview.js");
43 importScript("TimelineFrameOverview.js"); 43 importScript("TimelineFrameOverview.js");
44 importScript("TimelineMemoryOverview.js"); 44 importScript("TimelineMemoryOverview.js");
45 importScript("TimelinePowerGraph.js"); 45 importScript("TimelinePowerGraph.js");
46 importScript("TimelinePowerOverview.js"); 46 importScript("TimelinePowerOverview.js");
47 importScript("TimelineFlameChart.js"); 47 importScript("TimelineFlameChart.js");
48 importScript("TimelineUIUtils.js"); 48 importScript("TimelineUIUtils.js");
49 importScript("TimelineUIUtilsImpl.js"); 49 importScript("TimelineUIUtilsImpl.js");
50 importScript("TimelineView.js"); 50 importScript("TimelineView.js");
51 importScript("TimelineTracingView.js");
52 importScript("TimelineLayersView.js"); 51 importScript("TimelineLayersView.js");
53 importScript("TimelinePaintProfilerView.js"); 52 importScript("TimelinePaintProfilerView.js");
54 importScript("TracingModel.js"); 53 importScript("TracingModel.js");
55 importScript("TracingTimelineUIUtils.js"); 54 importScript("TracingTimelineUIUtils.js");
56 importScript("TransformController.js"); 55 importScript("TransformController.js");
57 importScript("PaintProfilerView.js"); 56 importScript("PaintProfilerView.js");
58 57
59 /** 58 /**
60 * @constructor 59 * @constructor
61 * @extends {WebInspector.Panel} 60 * @extends {WebInspector.Panel}
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 636
638 var isFrameMode = this._overviewModeSetting.get() === WebInspector.Timel inePanel.OverviewMode.Frames; 637 var isFrameMode = this._overviewModeSetting.get() === WebInspector.Timel inePanel.OverviewMode.Frames;
639 this._removeAllModeViews(); 638 this._removeAllModeViews();
640 this._overviewControls = []; 639 this._overviewControls = [];
641 640
642 if (isFrameMode) 641 if (isFrameMode)
643 this._overviewControls.push(new WebInspector.TimelineFrameOverview(t his._model, this._frameModel())); 642 this._overviewControls.push(new WebInspector.TimelineFrameOverview(t his._model, this._frameModel()));
644 else 643 else
645 this._overviewControls.push(new WebInspector.TimelineEventOverview(t his._model, this._uiUtils)); 644 this._overviewControls.push(new WebInspector.TimelineEventOverview(t his._model, this._uiUtils));
646 645
647 if (WebInspector.experimentsSettings.timelineOnTraceEvents.isEnabled() & & this._flameChartEnabledSetting.get()) { 646 if (this._tracingTimelineModel && this._flameChartEnabledSetting.get())
648 var tracingTimelineModel = WebInspector.experimentsSettings.timeline OnTraceEvents.isEnabled() ? this._tracingTimelineModel : null; 647 this._addModeView(new WebInspector.TimelineFlameChart(this, this._tr acingTimelineModel, this._frameModel()));
649 this._addModeView(new WebInspector.TimelineFlameChart(this, this._mo del, tracingTimelineModel, this._frameModel(), this._uiUtils)); 648 else
650 } else {
651 this._addModeView(this._timelineView()); 649 this._addModeView(this._timelineView());
652 }
653 650
654 if (this._captureMemorySetting.get()) { 651 if (this._captureMemorySetting.get()) {
655 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews. 652 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews.
656 this._overviewControls.push(new WebInspector.TimelineMemoryOverv iew(this._model, this._uiUtils)); 653 this._overviewControls.push(new WebInspector.TimelineMemoryOverv iew(this._model, this._uiUtils));
657 this._addModeView(new WebInspector.MemoryCountersGraph(this, this._m odel, this._uiUtils)); 654 this._addModeView(new WebInspector.MemoryCountersGraph(this, this._m odel, this._uiUtils));
658 } 655 }
659 656
660 if (this._capturePowerSetting && this._capturePowerSetting.get()) { 657 if (this._capturePowerSetting && this._capturePowerSetting.get()) {
661 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews. 658 if (!isFrameMode) // Frame mode skews time, don't render aux overvi ews.
662 this._overviewControls.push(new WebInspector.TimelinePowerOvervi ew(this._model)); 659 this._overviewControls.push(new WebInspector.TimelinePowerOvervi ew(this._model));
663 this._addModeView(new WebInspector.TimelinePowerGraph(this, this._mo del)); 660 this._addModeView(new WebInspector.TimelinePowerGraph(this, this._mo del));
664 } 661 }
665 662
666 if (this._captureTracingSetting && this._captureTracingSetting.get())
667 this._addModeView(new WebInspector.TimelineTracingView(this, this._t racingModel, this._model));
668
669 if (this._lazyTimelineView) 663 if (this._lazyTimelineView)
670 this._lazyTimelineView.setFrameModel(isFrameMode ? this._frameModel( ) : null); 664 this._lazyTimelineView.setFrameModel(isFrameMode ? this._frameModel( ) : null);
671 665
672 this._overviewPane.setOverviewControls(this._overviewControls); 666 this._overviewPane.setOverviewControls(this._overviewControls);
673 this.doResize(); 667 this.doResize();
674 this._updateSelectedRangeStats(); 668 this._updateSelectedRangeStats();
675 669
676 this._stackView.show(this._searchableView.element); 670 this._stackView.show(this._searchableView.element);
677 }, 671 },
678 672
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 * @param {!WebInspector.TimelineModel.Record} record 1464 * @param {!WebInspector.TimelineModel.Record} record
1471 * @return {boolean} 1465 * @return {boolean}
1472 */ 1466 */
1473 accept: function(record) 1467 accept: function(record)
1474 { 1468 {
1475 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1469 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1476 }, 1470 },
1477 1471
1478 __proto__: WebInspector.TimelineModel.Filter.prototype 1472 __proto__: WebInspector.TimelineModel.Filter.prototype
1479 } 1473 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | Source/devtools/front_end/timeline/TimelineTracingView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698