Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuke Telemetry::* from orbit #334

Open
classilla opened this issue Nov 12, 2016 · 7 comments
Open

Nuke Telemetry::* from orbit #334

classilla opened this issue Nov 12, 2016 · 7 comments

Comments

@classilla
Copy link
Owner

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
Copy link
Owner Author

classilla commented Nov 21, 2016

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
Copy link
Owner Author

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

@classilla
Copy link
Owner Author

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

@classilla
Copy link
Owner Author

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

classilla added a commit that referenced this issue Aug 18, 2017
classilla added a commit that referenced this issue Sep 2, 2017
classilla added a commit that referenced this issue Oct 2, 2017
classilla added a commit that referenced this issue Dec 24, 2019
@roytam1
Copy link

roytam1 commented Jan 6, 2020

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

@classilla
Copy link
Owner Author

I didn't make any further changes to it.

@roytam1
Copy link

roytam1 commented Jan 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants