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

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

Issue 1298543002: DevTools: Support Top-Down tree view on Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressing comments. Created 5 years, 4 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
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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 this.element.classList.add("timeline-details"); 1343 this.element.classList.add("timeline-details");
1344 1344
1345 this._defaultDetailsWidget = new WebInspector.VBox(); 1345 this._defaultDetailsWidget = new WebInspector.VBox();
1346 this._defaultDetailsWidget.element.classList.add("timeline-details-view"); 1346 this._defaultDetailsWidget.element.classList.add("timeline-details-view");
1347 this._defaultDetailsContentElement = this._defaultDetailsWidget.element.crea teChild("div", "timeline-details-view-body vbox"); 1347 this._defaultDetailsContentElement = this._defaultDetailsWidget.element.crea teChild("div", "timeline-details-view-body vbox");
1348 this.appendTab(WebInspector.TimelinePanel.DetailsTab.Details, WebInspector.U IString("Summary"), this._defaultDetailsWidget); 1348 this.appendTab(WebInspector.TimelinePanel.DetailsTab.Details, WebInspector.U IString("Summary"), this._defaultDetailsWidget);
1349 this.setPreferredTab(WebInspector.TimelinePanel.DetailsTab.Details); 1349 this.setPreferredTab(WebInspector.TimelinePanel.DetailsTab.Details);
1350 1350
1351 if (Runtime.experiments.isEnabled("timelineTreeView")) { 1351 if (Runtime.experiments.isEnabled("timelineTreeView")) {
1352 this._heavyTreeView = new WebInspector.TimelineTreeView(timelineModel); 1352 this._heavyTreeView = new WebInspector.TimelineTreeView(timelineModel);
1353 this.appendTab(WebInspector.TimelinePanel.DetailsTab.BottomUpTree, WebIn spector.UIString("Costly Functions"), this._heavyTreeView); 1353 this.appendTab(WebInspector.TimelinePanel.DetailsTab.BottomUpTree, WebIn spector.UIString("Aggregated Details"), this._heavyTreeView);
1354 } 1354 }
1355 1355
1356 this._staticTabs = new Set([ 1356 this._staticTabs = new Set([
1357 WebInspector.TimelinePanel.DetailsTab.Details, 1357 WebInspector.TimelinePanel.DetailsTab.Details,
1358 WebInspector.TimelinePanel.DetailsTab.BottomUpTree 1358 WebInspector.TimelinePanel.DetailsTab.BottomUpTree
1359 ]); 1359 ]);
1360 1360
1361 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._ tabSelected, this); 1361 this.addEventListener(WebInspector.TabbedPane.EventTypes.TabSelected, this._ tabSelected, this);
1362 } 1362 }
1363 1363
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 /** 1794 /**
1795 * @override 1795 * @override
1796 * @param {string} value 1796 * @param {string} value
1797 */ 1797 */
1798 handleQueryParam: function(value) 1798 handleQueryParam: function(value)
1799 { 1799 {
1800 WebInspector.TimelinePanel.show(); 1800 WebInspector.TimelinePanel.show();
1801 WebInspector.TimelinePanel.instance()._loadFromURL(value); 1801 WebInspector.TimelinePanel.instance()._loadFromURL(value);
1802 } 1802 }
1803 } 1803 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineModel.js ('k') | Source/devtools/front_end/timeline/TimelineTreeView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698