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

Unified Diff: third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js

Issue 2690603003: Timeline: streamline flame chart views update logic (Closed)
Patch Set: moar fixes Created 3 years, 10 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/perf_ui/FlameChart.js
diff --git a/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js b/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
index 26365877dc6bd41cdc0d87170fe5f7895629f5b0..2d334da82dd3f9289c5ed8ec86c39f998c6a3c31 100644
--- a/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
+++ b/third_party/WebKit/Source/devtools/front_end/perf_ui/FlameChart.js
@@ -1201,12 +1201,14 @@ PerfUI.FlameChart = class extends PerfUI.ChartViewport {
*/
reset() {
super.reset();
+ this._rawTimelineData = null;
+ this._rawTimelineDataLength = 0;
this._highlightedMarkerIndex = -1;
this._highlightedEntryIndex = -1;
this._selectedEntryIndex = -1;
/** @type {!Map<string,!Map<string,number>>} */
this._textWidth = new Map();
- this.update();
+ this.scheduleUpdate();
}
_enabled() {

Powered by Google App Engine
This is Rietveld 408576698