Closed Bug 1470901 Opened 6 years ago Closed 6 years ago

Add telemetry probes for WR-internal metrics

Categories

(Core :: Graphics: WebRender, enhancement, P2)

Other Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: kats, Assigned: kats)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(3 files, 1 obsolete file)

It would be good to add some telemetry probes to record how long scene building and rendering take. However the code is in rust, so either we have to ship the numbers to C++ code and record them from there, or add a rust API to telemetry. The former approach might have perf implications since this code is going to run a lot, we would need to be careful to not accidentally regress perf.
Priority: -- → P2
Assignee: nobody → bugmail
Attachment #8987861 - Flags: review?(francois)
Comment on attachment 8987866 [details]
Bug 1470901 - Add telemetry probes for measuring WebRender paint phases.

https://reviewboard.mozilla.org/r/253144/#review259782

Correct use of Histograms definitions. Will require Data Collection Review.

["main","gpu"] is a novel pair of processes to be recorded in. I'd expect a "content" in there, or "gpu" only. Neat.
Attachment #8987866 - Flags: review?(chutten) → review+
(In reply to Chris H-C :chutten from comment #5)
> ["main","gpu"] is a novel pair of processes to be recorded in. I'd expect a
> "content" in there, or "gpu" only. Neat.

We only have the gpu process on Windows right now. On other platforms the compositor stuff runs in the main process. Hence I'd like to instrument this in both main (for non-Windows) and gpu (for Windows).
Comment on attachment 8987867 [details]
Bug 1470901 - Record scene build, scene swap, and render times in telemetry.

https://reviewboard.mozilla.org/r/253146/#review259892
Attachment #8987867 - Flags: review?(sotaro.ikeda.g) → review+
Comment on attachment 8987861 [details]
Data collection request

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

Yes, in Histograms.json.

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

Yes, telemetry setting.

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

Yes, :kats.

4) Using the **[category system of data types](https://wiki.mozilla.org/Firefox/Data_Collection)** on the Mozilla wiki, what collection type of data do the requested measurements fall under?  **

Category 1.

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

Default ON, only in pre-release channels.

6) Does the instrumentation include the addition of **any *new* identifiers** (whether anonymous or otherwise; e.g., username, random IDs, etc.  See the appendix for more details)?

No.

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

Yes.

8) Does there need to be a check-in in the future to determine whether to renew the data?

No, permanent.
Attachment #8987861 - Flags: review?(francois) → review+
Attachment #8987865 - Attachment is obsolete: true
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/87d1695413a0
Add telemetry probes for measuring WebRender paint phases. r=chutten
https://hg.mozilla.org/integration/autoland/rev/346b316a0fe4
Record scene build, scene swap, and render times in telemetry. r=sotaro
https://hg.mozilla.org/mozilla-central/rev/87d1695413a0
https://hg.mozilla.org/mozilla-central/rev/346b316a0fe4
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: