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)
Toolkit
Telemetry
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
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → continuation
Assignee | ||
Comment 1•8 years ago
|
||
It looks like this would also avoid loading PromiseUtils.jsm and ServiceRequest.jsm at startup in content processes.
Comment hidden (mozreview-request) |
Reporter | ||
Comment 3•8 years ago
|
||
mozreview-review |
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+
Reporter | ||
Comment 4•8 years ago
|
||
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.
Assignee | ||
Comment 5•8 years ago
|
||
(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
Comment 7•8 years ago
|
||
bugherder |
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.
Description
•