Closed Bug 1151406 Opened 9 years ago Closed 9 years ago

Waterfall view rendering causes UI jank

Categories

(DevTools :: Performance Tools (Profiler/Timeline), defect, P2)

x86_64
Linux
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sjakthol, Assigned: vporof)

References

Details

(Whiteboard: [polish-backlog])

Attachments

(1 file)

Steps to reproduce:
1. Go to https://bug1080884.bugzilla.mozilla.org/attachment.cgi?id=8506982
2. Open the profiler and start recording
3. Let it run for 15-30 seconds (the more markers the more noticeable jank)
4. Stop the recording
5. Select a range of about 80 % the recording.
6. Move the selected range around

Expected results: The selection moves and the waterfall updates smoothly.

Actual results: The selection occasionally stops moving white the waterfall renders itself.

Profiling the profiler reveals that about 50% of the time is spent in _buildOutstandingMarkers.
More info in dupe bug 1157914
Blocks: perf-tool-v2
Whiteboard: [devedition-40]
things we can do
1) we could not constantly rerender waterfall when scrubbing selections
2) since we have fixed height rows, we can only render rows in the current view (similar to James' console prototype in pdx/december)
3) ....use the performance tool on it
Priority: -- → P1
(In reply to Jordan Santell [:jsantell] [@jsantell] from comment #3)
> things we can do
> 1) we could not constantly rerender waterfall when scrubbing selections

We already debounce selections I think.

> 2) since we have fixed height rows, we can only render rows in the current
> view (similar to James' console prototype in pdx/december)

We definitely already do this.
Here is a gzipped profile of the waterfall janking for many seconds.

This is so fun that when you import the profile, you can experience it as well.
Bug 1157914 alleviates this problem a little bit, so things are better now. Marking as P2, but still wanting to fix it.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Priority: P1 → P2
perf-perf already blocks perf-tool-v2
No longer blocks: perf-tool-v2
Many pref improvements were made now with bug 1152421. Reopen if this is still a major issue.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Whiteboard: [devedition-40] → [polish-backlog]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: