Bug 1339289 - Give names to a lot of common timers (r=ehsan)

MozReview-Commit-ID: IMsv5bkyjBL
This commit is contained in:
Bill McCloskey
2017-02-13 15:45:23 -08:00
parent f79edeabc9
commit 54da76be6b
15 changed files with 123 additions and 31 deletions

View File

@@ -295,7 +295,8 @@ nsHTMLDNSPrefetch::nsDeferrals::Add(uint16_t flags, Link *aElement)
if (!mActiveLoaderCount && !mTimerArmed && mTimer) {
mTimerArmed = true;
mTimer->InitWithFuncCallback(Tick, this, 2000, nsITimer::TYPE_ONE_SHOT);
mTimer->InitWithNamedFuncCallback(Tick, this, 2000, nsITimer::TYPE_ONE_SHOT,
"nsHTMLDNSPrefetch::nsDeferrals::Tick");
}
return NS_OK;