Bug 1472118 - Removes telemetry probes STS_NUMBER_OF_*.r=dragana,valentin

Differential Revision: https://phabricator.services.mozilla.com/D67738

--HG--
extra : moz-landing-system : lando
This commit is contained in:
MahakBansal 2020-03-30 19:32:01 +00:00
Родитель ff4dcdc969
Коммит ee23637f0d
3 изменённых файлов: 0 добавлений и 56 удалений

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

@ -1053,7 +1053,6 @@ nsSocketTransportService::Run() {
// 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().
@ -1064,7 +1063,6 @@ nsSocketTransportService::Run() {
// 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()
// between them and the following variable is cumulative time spent
@ -1073,9 +1071,6 @@ nsSocketTransportService::Run() {
for (;;) {
bool pendingEvents = false;
numberOfPendingEvents = 0;
numberOfPendingEventsLastCycle = 0;
if (Telemetry::CanRecordPrereleaseData()) {
startOfCycleForLastCycleCalc = TimeStamp::NowLoRes();
startOfNextIteration = TimeStamp::NowLoRes();
@ -1133,7 +1128,6 @@ nsSocketTransportService::Run() {
TimeStamp eventQueueStart = TimeStamp::NowLoRes();
do {
NS_ProcessNextEvent(mRawThread);
numberOfPendingEvents++;
pendingEvents = false;
mRawThread->HasPendingEvents(&pendingEvents);
} while (pendingEvents && mServingPendingQueue &&
@ -1145,12 +1139,6 @@ nsSocketTransportService::Run() {
Telemetry::AccumulateTimeDelta(Telemetry::STS_POLL_AND_EVENTS_CYCLE,
startOfIteration + pollDuration,
TimeStamp::NowLoRes());
Telemetry::Accumulate(Telemetry::STS_NUMBER_OF_PENDING_EVENTS,
numberOfPendingEvents);
numberOfPendingEventsLastCycle += numberOfPendingEvents;
numberOfPendingEvents = 0;
pollDuration = nullptr;
}
}
@ -1163,9 +1151,6 @@ nsSocketTransportService::Run() {
if (mShuttingDown) {
if (Telemetry::CanRecordPrereleaseData() &&
!startOfCycleForLastCycleCalc.IsNull()) {
Telemetry::Accumulate(
Telemetry::STS_NUMBER_OF_PENDING_EVENTS_IN_THE_LAST_CYCLE,
numberOfPendingEventsLastCycle);
Telemetry::AccumulateTimeDelta(
Telemetry::STS_POLL_AND_EVENT_THE_LAST_CYCLE,
startOfCycleForLastCycleCalc, TimeStamp::NowLoRes());
@ -1320,7 +1305,6 @@ nsresult nsSocketTransportService::DoPollIteration(TimeDuration* pollDuration) {
//
// service "active" sockets...
//
uint32_t numberOfOnSocketReadyCalls = 0;
for (i = 0; i < int32_t(mActiveCount); ++i) {
PRPollDesc& desc = mPollList[i + 1];
SocketContext& s = mActiveList[i];
@ -1331,7 +1315,6 @@ nsresult nsSocketTransportService::DoPollIteration(TimeDuration* pollDuration) {
#endif
s.DisengageTimeout();
s.mHandler->OnSocketReady(desc.fd, desc.out_flags);
numberOfOnSocketReadyCalls++;
} else if (s.IsTimedOut(now)) {
#ifdef MOZ_TASK_TRACER
tasktracer::AutoSourceEvent taskTracerEvent(
@ -1340,16 +1323,10 @@ nsresult nsSocketTransportService::DoPollIteration(TimeDuration* pollDuration) {
SOCKET_LOG(("socket %p timed out", s.mHandler));
s.DisengageTimeout();
s.mHandler->OnSocketReady(desc.fd, -1);
numberOfOnSocketReadyCalls++;
} else {
s.MaybeResetEpoch();
}
}
if (Telemetry::CanRecordPrereleaseData()) {
Telemetry::Accumulate(Telemetry::STS_NUMBER_OF_ONSOCKETREADY_CALLS,
numberOfOnSocketReadyCalls);
}
//
// check for "dead" sockets and remove them (need to do this in
// reverse order obviously).

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

@ -4465,15 +4465,6 @@
"n_buckets": 1000,
"description": "The duraion of a socketThread cycle, including polls and pending events. (ms)"
},
"STS_NUMBER_OF_PENDING_EVENTS": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],
"expires_in_version": "never",
"kind": "exponential",
"high": 2000,
"n_buckets": 100,
"description": "Number of pending events per SocketThread cycle."
},
"STS_POLL_CYCLE": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],
@ -4492,24 +4483,6 @@
"n_buckets": 1000,
"description": "The duraion of the socketThread cycle during shutdown, including polls and pending events. (ms)"
},
"STS_NUMBER_OF_PENDING_EVENTS_IN_THE_LAST_CYCLE": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],
"expires_in_version": "never",
"kind": "exponential",
"high": 2000,
"n_buckets": 100,
"description": "Number of pending events per SocketThread cycle during shutdown."
},
"STS_NUMBER_OF_ONSOCKETREADY_CALLS": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],
"expires_in_version": "never",
"kind": "exponential",
"high": 2000,
"n_buckets": 100,
"description": "Number of OnSocketReady calls during a single poll."
},
"STS_POLL_BLOCK_TIME": {
"record_in_processes": ["main", "content"],
"products": ["firefox", "fennec", "geckoview"],

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

@ -330,9 +330,6 @@
"SLOW_ADDON_WARNING_RESPONSE_TIME",
"SLOW_ADDON_WARNING_STATES",
"STARTUP_CRASH_DETECTED",
"STS_NUMBER_OF_ONSOCKETREADY_CALLS",
"STS_NUMBER_OF_PENDING_EVENTS",
"STS_NUMBER_OF_PENDING_EVENTS_IN_THE_LAST_CYCLE",
"STS_POLL_AND_EVENTS_CYCLE",
"STS_POLL_AND_EVENT_THE_LAST_CYCLE",
"STS_POLL_BLOCK_TIME",
@ -870,9 +867,6 @@
"SSL_TLS12_INTOLERANCE_REASON_PRE",
"SSL_VERSION_FALLBACK_INAPPROPRIATE",
"STARTUP_CRASH_DETECTED",
"STS_NUMBER_OF_ONSOCKETREADY_CALLS",
"STS_NUMBER_OF_PENDING_EVENTS",
"STS_NUMBER_OF_PENDING_EVENTS_IN_THE_LAST_CYCLE",
"STS_POLL_AND_EVENTS_CYCLE",
"STS_POLL_AND_EVENT_THE_LAST_CYCLE",
"STS_POLL_BLOCK_TIME",