mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
parent
1f4a5663e9
commit
57251fc4e7
9 changed files with 0 additions and 77 deletions
|
|
@ -475,9 +475,6 @@ nsSocketTransportService::Poll(uint32_t *interval,
|
|||
PRIntervalTime ts = PR_IntervalNow();
|
||||
|
||||
TimeStamp pollStart;
|
||||
if (mTelemetryEnabledPref) {
|
||||
pollStart = TimeStamp::NowLoRes();
|
||||
}
|
||||
|
||||
SOCKET_LOG((" timeout = %i milliseconds\n",
|
||||
PR_IntervalToMilliseconds(pollTimeout)));
|
||||
|
|
@ -485,10 +482,6 @@ nsSocketTransportService::Poll(uint32_t *interval,
|
|||
|
||||
PRIntervalTime passedInterval = PR_IntervalNow() - ts;
|
||||
|
||||
if (mTelemetryEnabledPref && !pollStart.IsNull()) {
|
||||
*pollDuration = TimeStamp::NowLoRes() - pollStart;
|
||||
}
|
||||
|
||||
SOCKET_LOG((" ...returned after %i milliseconds\n",
|
||||
PR_IntervalToMilliseconds(passedInterval)));
|
||||
|
||||
|
|
@ -862,20 +855,9 @@ nsSocketTransportService::Run()
|
|||
// make sure the pseudo random number generator is seeded on this thread
|
||||
srand(static_cast<unsigned>(PR_Now()));
|
||||
|
||||
// For the calculation of the duration of the last cycle (i.e. the last for-loop
|
||||
// iteration before shutdown).
|
||||
TimeStamp startOfCycleForLastCycleCalc;
|
||||
int numberOfPendingEventsLastCycle;
|
||||
|
||||
// For measuring of the poll iteration duration without time spent blocked
|
||||
// in poll().
|
||||
TimeStamp pollCycleStart;
|
||||
// Time blocked in poll().
|
||||
TimeDuration singlePollDuration;
|
||||
|
||||
// For calculating the time needed for a new element to run.
|
||||
TimeStamp startOfIteration;
|
||||
TimeStamp startOfNextIteration;
|
||||
int numberOfPendingEvents;
|
||||
|
||||
// If there is too many pending events queued, we will run some poll()
|
||||
|
|
@ -887,18 +869,9 @@ nsSocketTransportService::Run()
|
|||
bool pendingEvents = false;
|
||||
|
||||
numberOfPendingEvents = 0;
|
||||
numberOfPendingEventsLastCycle = 0;
|
||||
if (mTelemetryEnabledPref) {
|
||||
startOfCycleForLastCycleCalc = TimeStamp::NowLoRes();
|
||||
startOfNextIteration = TimeStamp::NowLoRes();
|
||||
}
|
||||
pollDuration = 0;
|
||||
|
||||
do {
|
||||
if (mTelemetryEnabledPref) {
|
||||
pollCycleStart = TimeStamp::NowLoRes();
|
||||
}
|
||||
|
||||
DoPollIteration(&singlePollDuration);
|
||||
|
||||
mRawThread->HasPendingEvents(&pendingEvents);
|
||||
|
|
@ -913,15 +886,6 @@ nsSocketTransportService::Run()
|
|||
} else {
|
||||
mServingPendingQueue = true;
|
||||
}
|
||||
|
||||
if (mTelemetryEnabledPref) {
|
||||
startOfIteration = startOfNextIteration;
|
||||
// Everything that comes after this point will
|
||||
// be served in the next iteration. If no even
|
||||
// arrives, startOfNextIteration will be reset at the
|
||||
// beginning of each for-loop.
|
||||
startOfNextIteration = TimeStamp::NowLoRes();
|
||||
}
|
||||
}
|
||||
TimeStamp eventQueueStart = TimeStamp::NowLoRes();
|
||||
do {
|
||||
|
|
|
|||
|
|
@ -770,12 +770,6 @@ nsUDPSocket::CloseSocket()
|
|||
// If shutdown last to long, let the socket leak and do not close it.
|
||||
UDPSOCKET_LOG(("Intentional leak"));
|
||||
} else {
|
||||
|
||||
PRIntervalTime closeStarted = 0;
|
||||
if (gSocketTransportService->IsTelemetryEnabledAndNotSleepPhase()) {
|
||||
closeStarted = PR_IntervalNow();
|
||||
}
|
||||
|
||||
PR_Close(mFD);
|
||||
}
|
||||
mFD = nullptr;
|
||||
|
|
|
|||
|
|
@ -3311,13 +3311,6 @@ nsCookieService::SetCookieInternal(nsIURI *aHostURI,
|
|||
// so we can handle them separately.
|
||||
bool newCookie = ParseAttributes(aCookieHeader, cookieAttributes);
|
||||
|
||||
// Collect telemetry on how often secure cookies are set from non-secure
|
||||
// origins, and vice-versa.
|
||||
//
|
||||
// 0 = nonsecure and "http:"
|
||||
// 1 = nonsecure and "https:"
|
||||
// 2 = secure and "http:"
|
||||
// 3 = secure and "https:"
|
||||
bool isHTTPS;
|
||||
nsresult rv = aHostURI->SchemeIs("https", &isHTTPS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue