Closed Bug 1932962 Opened 18 days ago Closed 8 days ago

Optimize CounterMetric construction when disabled

Categories

(Toolkit :: Telemetry, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: chutten, Assigned: chutten)

References

Details

Attachments

(1 file)

Right now we have an optimized path using codegen_new for constructing CounterMetric instances in a way that's as small as possible in terms of binary size (bug 1866479).

With bug 1931277 it is very likely that Thunderbird will be mass-disabling these metrics. But codegen_new presumes that the metric is enabled.

This bug is about reducing binary size for default-disabled use-counter-style counter metrics. (Probably by writing codegen_disabled_new)

Note that we can't "just" make these all anonymous or disappear because Server Knobs could come in and re-enable them.

Assignee: nobody → chutten
Status: NEW → ASSIGNED
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/135720192601 Optimize the construction of simple disabled counter metrics r=TravisLong
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: