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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js

Issue 2785533002: DevTools: Show event initiator on Flame Chart for selected entries (Closed)
Patch Set: sort experiments Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js
index d0f130546714584b869a3e9d7c7229dc9aecfd0c..d38e8a2ed1d186d9ab40a0216fcdf93ca49b119f 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineFlameChartView.js
@@ -247,6 +247,10 @@ Timeline.TimelineFlameChartView = class extends UI.VBox {
*/
_onEntrySelected(dataProvider, event) {
var entryIndex = /** @type{number} */ (event.data);
+ if (Runtime.experiments.isEnabled('timelineEventInitiators') && dataProvider === this._mainDataProvider) {
+ if (this._mainDataProvider.buildFlowForInitiator(entryIndex))
+ this._mainFlameChart.scheduleUpdate();
+ }
this._delegate.select(dataProvider.createSelection(entryIndex));
}

Powered by Google App Engine
This is Rietveld 408576698