QM: Add telemetry to count number of origins with zero usage
Categories
(Core :: Storage: Quota Manager, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox144 | --- | fixed |
People
(Reporter: janv, Assigned: janv)
References
Details
Attachments
(4 files)
We want to collect telemetry on the number of origins that have zero usage. This telemetry will help us determine whether it's worthwhile to implement logic to clean up such unused origins. The goal is to reduce storage bloat and improve storage initialization times, especially for long-lived profiles with many origins.
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 1•9 months ago
|
||
Update gtest names for Flatten to reflect their current location. Since the
helper lives under dom/quota, the tests should be part of the dom-storage gtest
filter set.
This ensures regressions are caught by local runs rather than only on try
server or after landing.
| Assignee | ||
Comment 2•9 months ago
|
||
Add standard iterator traits to FlatIter so it can be used with std::distance.
This brings Flatten in line with standard iterator requirements.
The gtests are updated to verify correct behavior by checking that ranges
report the expected distance.
| Assignee | ||
Comment 3•9 months ago
|
||
Introduce a generalized MaybeInsertOriginInfos helper that accepts a predicate
for filtering origin infos. This allows future extensions where different
filtering criteria may be applied.
The existing MaybeInsertNonPersistedOriginInfos is updated to use the new
generic helper with a predicate that excludes persisted origins.
| Assignee | ||
Comment 4•9 months ago
|
||
Introduce telemetry to measure the number of origins with zero quota-charged
usage.
A new MaybeInsertNonPersistedZeroUsageOriginInfos helper is added to filter out
non-persisted origins that report zero usage. The RecordTemporaryStorageMetrics
method records this data after full temporary storage initialization.
This telemetry helps evaluate whether cleaning up unused origins is worthwhile.
The long-term goal is to reduce storage bloat and improve initialization
performance for profiles that have accumulated many empty origins over time.
Comment 6•9 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/68830ff63640
https://hg.mozilla.org/mozilla-central/rev/f6543ab80f7c
https://hg.mozilla.org/mozilla-central/rev/536deba7ccc1
https://hg.mozilla.org/mozilla-central/rev/79b1291f948c
Updated•8 months ago
|
Description
•