diff --git a/dom/quota/ActorsParent.cpp b/dom/quota/ActorsParent.cpp index 0a9335376264..550e54f59797 100644 --- a/dom/quota/ActorsParent.cpp +++ b/dom/quota/ActorsParent.cpp @@ -4463,6 +4463,9 @@ nsresult QuotaManager::LoadQuota() { } const auto now = TimeStamp::Now(); + Telemetry::ScalarSetMaximum( + Telemetry::ScalarID::QM_REPOSITORIES_INITIALIZATION_TIME, + static_cast((now - startTime).ToMilliseconds())); Telemetry::AccumulateTimeDelta( Telemetry::QM_REPOSITORIES_INITIALIZATION_TIME_V2, startTime, now); diff --git a/toolkit/components/telemetry/Scalars.yaml b/toolkit/components/telemetry/Scalars.yaml index 629e4acccb14..c0f3af1d96ad 100644 --- a/toolkit/components/telemetry/Scalars.yaml +++ b/toolkit/components/telemetry/Scalars.yaml @@ -3248,6 +3248,25 @@ screenshots: record_in_processes: - 'main' +# The following section is for quotaManager. +qm: + repositories_initialization_time: + bug_numbers: + - 1609625 + description: > + A temporary probe to track the time for initializing the best-effort + repositories especially the longest the time. + expires: "76" + kind: uint + notification_emails: + - ttung@mozilla.com + - storage-telemetry@mozilla.com + release_channel_collection: opt-out + products: + - 'firefox' + record_in_processes: + - 'main' + # The following section is for tracking the number of failure for indexedDB. idb.failure: fileinfo_error: