Make use counter data available locally
Categories
(Core :: General, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: zcorpan, Assigned: emilio)
References
Details
Attachments
(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.
Reporter | ||
Updated•4 months ago
|
Reporter | ||
Updated•4 months ago
|
Comment 1•4 months ago
|
||
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 https://searchfox.org/mozilla-central/rev/ed02e6e84e433cd283e86377524462b4e8b1597b/dom/base/Document.cpp#15582 and https://searchfox.org/mozilla-central/rev/ed02e6e84e433cd283e86377524462b4e8b1597b/dom/workers/WorkerPrivate.cpp#4285 as relevant places that would need tweaking to do something like this outside of Telemetry.
Comment 2•4 months ago
|
||
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 https://github.com/WPO-Foundation/wptagent/blob/eca6d1825f2b8d12bd14ea83134318f682eed903/internal/support/trace_parser.py#L899
Comment 3•4 months ago
|
||
Ok, so this is not just the UI about:telemetry#histograms-tab_search=use_counter2
but actually get the data dumped somewhere.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 4•4 months ago
|
||
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.
Assignee | ||
Comment 5•4 months ago
|
||
Simon, lmk if the format in comment 4 works for you?
Updated•4 months ago
|
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/299912be733e Dump use counters with dom.use_counters.dump.{document,worker,page}. r=smaug,zcorpan
Comment 7•4 months ago
|
||
bugherder |
Reporter | ||
Updated•4 months ago
|
Description
•