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)
Toolkit
Telemetry
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.
Comment 1•8 years ago
|
||
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]
Comment 2•8 years ago
|
||
Once we handle this properly, we can remove the workaround here: https://dxr.mozilla.org/mozilla-central/rev/9baec74b3db1bf005c66ae2f50bafbdb02c3be38/toolkit/components/telemetry/TelemetryHistogram.cpp#2001
Reporter | ||
Comment 3•7 years ago
|
||
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.
Description
•