bug 1470215 let Telemetry::DNS_NATIVE_QUEUING measure queue times r=mcmanus

MozReview-Commit-ID: 77FE4SJOXMG

--HG--
extra : rebase_source : 545961452d5d32b2ce65376e8ed680d6413eaa30
This commit is contained in:
Daniel Stenberg 2018-06-25 08:03:44 +02:00
Родитель 2439e9431a
Коммит 1fabe10330
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -1818,6 +1818,9 @@ nsHostResolver::ThreadFunc()
TimeStamp startTime = TimeStamp::Now();
bool getTtl = rec->mGetTtl;
TimeDuration inQueue = startTime - rec->mNativeStart;
uint32_t ms = static_cast<uint32_t>(inQueue.ToMilliseconds());
Telemetry::Accumulate(Telemetry::DNS_NATIVE_QUEUING, ms);
nsresult status = GetAddrInfo(rec->host, rec->af,
rec->flags, &ai,
getTtl);

Просмотреть файл

@ -3247,6 +3247,17 @@
"n_buckets": 50,
"description": "Time for a completed native name resolution (msec)"
},
"DNS_NATIVE_QUEUING": {
"record_in_processes": ["main"],
"expires_in_version": "never",
"kind": "exponential",
"high": 60000,
"releaseChannelCollection": "opt-out",
"alert_emails": ["necko@mozilla.com", "dstenberg@mozilla.com"],
"bug_numbers": [1470215],
"n_buckets": 50,
"description": "Time in resolve queue waiting to getaddrinfo (msec)"
},
"DNS_TRR_RACE": {
"record_in_processes": ["main"],
"alert_emails": ["necko@mozilla.com", "dstenberg@mozilla.com"],