Closed Bug 1305758 Opened 8 years ago Closed 7 years ago

TelemetryHistograms shouldn't have to pre-allocated every KeyedHistogram

Categories

(Toolkit :: Telemetry, defect, P3)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: chutten, Unassigned)

Details

(Whiteboard: [measurement:client])

As noticed in in bug 1218576 comment 49 and referenced again in bug 1304494, having to pre-allocated every keyedhistogram for each process type is kinda silly. Especially since it's primarly due to some code structure choices in TelemetrySession.jsm which can likely be changed.

We can almost certainly do better.
I think the proper way to fix this is to fix our snapshotting.

We only use snapshotting of individual keyed histograms in tests and for the ping assembly in TelemetrySession.jsm.
Both could instead use a proper snapshotting API for keyed histograms: one function to snapshot all keyed histograms, potentially filtered by process type etc.
Priority: -- → P3
Whiteboard: [measurement:client]
Fixed by bug 1366294
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.