Closed Bug 1813593 Opened 4 months ago Closed 4 months ago

Make use counter data available locally


(Core :: General, enhancement)




111 Branch
Tracking Status
firefox111 --- fixed


(Reporter: zcorpan, Assigned: emilio)




(1 file)

Dump the use counter data of a run to stderr behind a pref or something around those lines, so that it's possible to collect use counter data locally. The idea is to make it possible to get Firefox use counter data into httparchive, which should help with web compat analysis.

Flags: needinfo?(emilio)

Should the counters be associated with an individual top level page or document, or just aggregate for the entire process lifetime? I had previously discussed something similar with Smaug who pointed me at and as relevant places that would need tweaking to do something like this outside of Telemetry.

Also it'd be worth understanding a bit better how webpagetest currently extracts chrome feature usage - both the semantics of things like Comment 1 and logistically what kind of file / format it's exporting to, to make sure it'd be reasonable to ingest and expose for something like http archive. On the latter point my suspicion is that it's part of a larger trace file processed here

Ok, so this is not just the UI about:telemetry#histograms-tab_search=use_counter2
but actually get the data dumped somewhere.

Assignee: nobody → emilio
Flags: needinfo?(emilio)

The idea is that dumping the counter with the url all the time prevents
(or at least mitigates) races between different process.

This should allow to get the counters from local builds in a
semi-structured / easy to filter-and-parse way.

Simon, lmk if the format in comment 4 works for you?

Flags: needinfo?(zcorpan)
Attachment #9315238 - Attachment description: Bug 1813593 - Dump use counters with dom.use_counters.dump. r=smaug → Bug 1813593 - Dump use counters with dom.use_counters.dump.{document,worker,page}. r=smaug
Pushed by
Dump use counters with dom.use_counters.dump.{document,worker,page}. r=smaug,zcorpan
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Flags: needinfo?(zcorpan)
You need to log in before you can comment on or make changes to this bug.