Closed Bug 1354041 Opened 8 years ago Closed 8 years ago

Avoid loading unneeded Telemetry JS modules in content process

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: gfritzsche, Assigned: mccr8, Mentored)

References

Details

(Whiteboard: [measurement:client] [lang=js] [good next bug])

Attachments

(1 file)

Per bug 1350472 we load Telemetry modules in the content process that are not actually needed: - TelemetrySend.jsm - ClientID.jsm After any changes we should: - build: mach build - check eslint: mach eslint toolkit/components/telemetry - run tests: mach test toolkit/components/telemetry/tests/unit
Blocks: 1350472
Assignee: nobody → continuation
It looks like this would also avoid loading PromiseUtils.jsm and ServiceRequest.jsm at startup in content processes.
Comment on attachment 8857163 [details] Bug 1354041 - Lazily load TelemetrySend in TelemetrySession. https://reviewboard.mozilla.org/r/129104/#review131826
Attachment #8857163 - Flags: review?(gfritzsche) → review+
Do we still load ClientID.jsm after this? We should not need that module at all in content processes. I'd be happy to take that to a separate bug though.
(In reply to Georg Fritzsche [:gfritzsche] from comment #4) > Do we still load ClientID.jsm after this? We do not. Not loading TelemetrySend is sufficient to avoid loading it.
Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/86a7adbdc6ef Lazily load TelemetrySend in TelemetrySession. r=gfritzsche
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: