Closed Bug 694014 Opened 13 years ago Closed 1 year ago

Add telemetry for paint time

Categories

(Core :: Graphics, defect)

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jrmuizel, Unassigned)

Details

(Whiteboard: [Snappy:P1])

Attachments

(1 file)

We probably don't want to record all of the paint times, because short paint times will dominate. Perhaps we should only record the times above 16ms.
(In reply to Jeff Muizelaar [:jrmuizel] from comment #0)
> We probably don't want to record all of the paint times, because short paint
> times will dominate. Perhaps we should only record the times above 16ms.

i think we should record all paints. it's good to get a complete distribution. If you skip 0s then it's hard to track improvements.
Whiteboard: [Snappy:P1]
I'm not thrilled about the overhead of measuring timestamps on every paint. TimeStamp::Now() is pretty slow on Windows.
Comment on attachment 605070 [details] [diff] [review]
Record paint times

You could condition it on Telemetry::CanRecord().
Comment on attachment 605070 [details] [diff] [review]
Record paint times

You might want to either skip or have a separate category for paints of non-top level windows (nsIWidget::GetWindowType), so that painting relatively simple popups widgets (tool tips, drop downs and other things) doesn't cause the data to be more confusing than it needs to be.
Is this bug going to come back to life soon?
(In reply to Taras Glek (:taras) from comment #5)
> Is this bug going to come back to life soon?

I don't have any immediate plans. How important do you think this is?
if we ever need to compare perf for gfx improvements(ie see if azure is a win), something like this is required.
Severity: normal → S3

Bob, I think this exists now: https://probes.telemetry.mozilla.org/?search=paint

Do you think its safe to close this bug?

Flags: needinfo?(bhood)

Yes.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(bhood)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: