tenfourfox icon indicating copy to clipboard operation
tenfourfox copied to clipboard

Nuke Telemetry::* from orbit

Open classilla opened this issue 9 years ago • 7 comments

Using dummy preprocessor macros in toolkit/components/telemetry for things like Telemetry::Accumulate, we should be able to eliminate much dead code.

It's the only way to be sure.

classilla avatar Nov 12 '16 01:11 classilla

First cut at this reduced XUL down only by about 300K. Substantial changes were needed for anything that calls Services.telemetry and I still have to look at JS in devtools/.

Since tele isn't being called in hot loops there is probably a small win here but it feels like only an incremental one and the changes required are massive. I'd rather introduce the whole thing for an FPR release. For 45.6 let's just yank it from the UI facing sections:

  • kill tele in nsBrowserGlue.js (especially _handleURLBarTelemetry but there are others)
  • kill in tabbrowser.xml
  • kill in browser.js (especially OpenBrowserWindow)

classilla avatar Nov 21 '16 06:11 classilla

hg revert --no-backup browser/components/nsBrowserGlue.js browser/base/content/tabbrowser.xml browser/base/content/browser.js

classilla avatar Nov 22 '16 02:11 classilla

This doesn't include devtools. no_tele.diff.txt

classilla avatar Nov 22 '16 03:11 classilla

Did the 45.6 parts. Looking at GC/CC for 45.7 or .8.

classilla avatar Dec 11 '16 03:12 classilla

do newer commits pushed? latest rev is 0761d95 right now and tabbrowser.xml changes are missing.

roytam1 avatar Jan 06 '20 03:01 roytam1

I didn't make any further changes to it.

classilla avatar Jan 06 '20 04:01 classilla

isn't telemetrystopwatch calls in tabbrowser.xml stop running when it is not imported in browser.js?

roytam1 avatar Jan 06 '20 04:01 roytam1