Closed Bug 1817877 Opened 3 years ago Closed 3 years ago

Stop using DeferredTask to delay the one-off initialization of content-process telemetry

Categories

(Toolkit :: Telemetry, defect)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

Details

(Keywords: perf-alert)

Attachments

(1 file)

bug 1645862 added some comment here:

    // FIXME: This is a terrible abuse of DeferredTask.

Although pointedly phrased, it does seem sad that this is causing us to import yet another module on content process startup. DeferredTask is there to debounce multiple calls during the timeout period, and there is only one caller (from the observer notification content-process-ready-for-script which only fires once), so it isn't needed here.

This appears to be the only content-process use of DeferredTask on startup.

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/6b7f0ab79790 stop using DeferredTask in TelemetryControllerContent.sys.mjs, r=chutten
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

(In reply to Pulsebot from comment #2)

Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/6b7f0ab79790
stop using DeferredTask in TelemetryControllerContent.sys.mjs, r=chutten

== Change summary for alert #37346 (as of Mon, 27 Feb 2023 11:21:39 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new)
0.36% Base Content JS macosx1015-64-shippable-qr fission 1,653,944.00 -> 1,647,984.00
0.36% Base Content JS macosx1015-64-shippable-qr fission 1,653,936.00 -> 1,647,960.00

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=37346

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: