mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
backout changeset 26509d4e545d (bug 715953) due to debug orange.
This commit is contained in:
parent
5c19931b0f
commit
ea331a277f
@ -283,9 +283,6 @@ static bool gDragServiceDisabled = false;
|
||||
static FILE *gDumpFile = nsnull;
|
||||
static PRUint64 gNextWindowID = 0;
|
||||
static PRUint32 gSerialCounter = 0;
|
||||
static PRUint32 gTimeoutsRecentlySet = 0;
|
||||
static TimeStamp gLastRecordedRecentTimeouts;
|
||||
#define STATISTICS_INTERVAL (30 * PR_MSEC_PER_SEC)
|
||||
|
||||
#ifdef DEBUG_jst
|
||||
PRInt32 gTimeoutCnt = 0;
|
||||
@ -9014,7 +9011,6 @@ nsGlobalWindow::SetTimeoutOrInterval(nsIScriptTimeoutHandler *aHandler,
|
||||
timeout->mPrincipal = ourPrincipal;
|
||||
}
|
||||
|
||||
++gTimeoutsRecentlySet;
|
||||
TimeDuration delta = TimeDuration::FromMilliseconds(realInterval);
|
||||
|
||||
if (!IsFrozen() && !mTimeoutsSuspendDepth) {
|
||||
@ -9189,15 +9185,6 @@ nsGlobalWindow::RunTimeout(nsTimeout *aTimeout)
|
||||
return;
|
||||
}
|
||||
|
||||
// Record telemetry information about timers set recently.
|
||||
TimeDuration recordingInterval = TimeDuration::FromMilliseconds(STATISTICS_INTERVAL);
|
||||
if (now - gLastRecordedRecentTimeouts > recordingInterval) {
|
||||
PRUint32 count = gTimeoutsRecentlySet;
|
||||
gTimeoutsRecentlySet = 0;
|
||||
Telemetry::Accumulate(Telemetry::DOM_TIMERS_RECENTLY_SET, count);
|
||||
gLastRecordedRecentTimeouts = now;
|
||||
}
|
||||
|
||||
// Insert a dummy timeout into the list of timeouts between the
|
||||
// portion of the list that we are about to process now and those
|
||||
// timeouts that will be processed in a future call to
|
||||
|
@ -324,7 +324,6 @@ HISTOGRAM_BOOLEAN(XMLHTTPREQUEST_ASYNC_OR_SYNC, "Type of XMLHttpRequest, async o
|
||||
* DOM telemetry.
|
||||
*/
|
||||
HISTOGRAM(DOM_TIMERS_FIRED_PER_NATIVE_TIMEOUT, 1, 3000, 10, EXPONENTIAL, "DOM: Timer handlers called per native timer expiration")
|
||||
HISTOGRAM(DOM_TIMERS_RECENTLY_SET, 1, 3000, 10, EXPONENTIAL, "DOM: setTimeout/setInterval calls recently (last 30s or more)")
|
||||
|
||||
/**
|
||||
* DOM Storage telemetry.
|
||||
|
Loading…
Reference in New Issue
Block a user