We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a09a5a2 commit a136d17Copy full SHA for a136d17
core/lib/tracehouse/main-thread-tasks.js
@@ -267,6 +267,14 @@ class MainThreadTasks {
267
// It's less than 1ms, we'll let it slide by increasing the duration of the parent.
268
currentTask.endTime = nextTask.endTime;
269
currentTask.duration += timeDelta;
270
+
271
+ // Recursively extend parent endTimes, as needed.
272
+ let cur = currentTask.parent;
273
+ while (cur && cur.endTime < nextTask.endTime) {
274
+ cur.duration += nextTask.endTime - cur.endTime;
275
+ cur.endTime = nextTask.endTime;
276
+ cur = cur.parent;
277
+ }
278
} else if (nextTask.unbounded) {
279
// It's ending at traceEndTs, it means we were missing the end event. We'll truncate it to the parent.
280
nextTask.endTime = currentTask.endTime;
0 commit comments