mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1766251 - Count TRR_SKIP_REASON_NATIVE_SUCCESS/FAILED once in strict mode, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D144568
This commit is contained in:
parent
f9c5e96acb
commit
2422b023ff
@ -317,7 +317,7 @@ void AddrHostRecord::ResolveComplete() {
|
||||
Telemetry::Accumulate(Telemetry::TRR_SKIP_REASON_TRR_FIRST2,
|
||||
TRRService::ProviderKey(),
|
||||
static_cast<uint32_t>(mTRRSkippedReason));
|
||||
if (!mTRRSuccess) {
|
||||
if (!mTRRSuccess && LoadNativeUsed()) {
|
||||
Telemetry::Accumulate(
|
||||
mNativeSuccess ? Telemetry::TRR_SKIP_REASON_NATIVE_SUCCESS
|
||||
: Telemetry::TRR_SKIP_REASON_NATIVE_FAILED,
|
||||
@ -359,12 +359,6 @@ void AddrHostRecord::ResolveComplete() {
|
||||
if (mTRRSuccess) {
|
||||
Telemetry::Accumulate(Telemetry::TRR_ATTEMPT_COUNT,
|
||||
TRRService::ProviderKey(), mTrrAttempts);
|
||||
} else if (LoadNativeUsed()) {
|
||||
Telemetry::Accumulate(mNativeSuccess
|
||||
? Telemetry::TRR_SKIP_REASON_NATIVE_SUCCESS
|
||||
: Telemetry::TRR_SKIP_REASON_NATIVE_FAILED,
|
||||
TRRService::ProviderKey(),
|
||||
static_cast<uint32_t>(mTRRSkippedReason));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user