Closed Bug 1784286 Opened 2 years ago Closed 2 years ago

Add renderer time probe for frames with no shader compilation

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: bas.schouten, Assigned: bas.schouten)

Details

Attachments

(2 files)

While investigating slow renderer times, Nicolas and I discovered that at the start of a session under circumstances where the shader cache is flushed, we can end up with a bunch of very slow frames due to shader compilation. We want to know if this also explains the slow frames in our telemetry, to that end we're adding a probe that records only frames during which no shader building took place.

Attached file Data Review
Attachment #9289478 - Flags: review?(chutten)
Attachment #9289478 - Flags: review?(chutten) → data-review?(chutten)
Attachment #9289478 - Attachment mime type: application/octet-stream → text/plain

Comment on attachment 9289478 [details]
Data Review

DATA COLLECTION REVIEW RESPONSE:

Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes.

Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

If the request is for permanent data collection, is there someone who will monitor the data over time?

Yes, Bas Schouten and gfx-telemetry-alerts are responsible.

Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 1, Technical.

Is the data collection request for default-on or default-off?

Default on for all channels.

Does the instrumentation include the addition of any new identifiers?

No.

Is the data collection covered by the existing Firefox privacy notice?

Yes.

Does the data collection use a third-party collection tool?

No.


Result: datareview+

Attachment #9289478 - Flags: data-review?(chutten) → data-review+
Pushed by bschouten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/524ef2de255e
Add telemetry probe for measuring rendering time for frames without shader compilation. r=nical

Backed out for causing webrender bustages.

[task 2022-08-16T20:02:32.511Z] error: unnecessary parentheses around `if` condition
[task 2022-08-16T20:02:32.512Z]     --> webrender/src/renderer/mod.rs:1525:12
[task 2022-08-16T20:02:32.512Z]      |
[task 2022-08-16T20:02:32.512Z] 1525 |         if (self.profile.get(profiler::SHADER_BUILD_TIME).is_none()) {
[task 2022-08-16T20:02:32.512Z]      |            ^                                                       ^
[task 2022-08-16T20:02:32.512Z]      |
[task 2022-08-16T20:02:32.512Z]      = note: `-D unused-parens` implied by `-D warnings`
[task 2022-08-16T20:02:32.512Z] help: remove these parentheses
[task 2022-08-16T20:02:32.512Z]      |
[task 2022-08-16T20:02:32.513Z] 1525 -         if (self.profile.get(profiler::SHADER_BUILD_TIME).is_none()) {
[task 2022-08-16T20:02:32.513Z] 1525 +         if self.profile.get(profiler::SHADER_BUILD_TIME).is_none() {
[task 2022-08-16T20:02:32.513Z]      |
[task 2022-08-16T20:02:32.513Z] 
[task 2022-08-16T20:02:43.453Z] error: could not compile `webrender` due to previous error
Flags: needinfo?(bas)
Pushed by bschouten@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9db221adc938
Add telemetry probe for measuring rendering time for frames without shader compilation. r=nical
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Flags: needinfo?(bas)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: