From ce2ca64e46ae9ea01c1ce1a0f7ea442110c83bf4 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Thu, 26 Jan 2012 13:13:14 +0000 Subject: [PATCH] backout changeset 26509d4e545d (bug 715953) due to debug orange. --- dom/base/nsGlobalWindow.cpp | 13 ------------- toolkit/components/telemetry/TelemetryHistograms.h | 1 - 2 files changed, 14 deletions(-) diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index f0432031e7b..76b9d3f0975 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -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 diff --git a/toolkit/components/telemetry/TelemetryHistograms.h b/toolkit/components/telemetry/TelemetryHistograms.h index be77bc7b6d9..3e7f7701c48 100644 --- a/toolkit/components/telemetry/TelemetryHistograms.h +++ b/toolkit/components/telemetry/TelemetryHistograms.h @@ -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.