mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:17:24 +02:00
Merge pull request #15585 from SimonWalton-HiFi/domainlist-recv-logging
Logging for DomainList reception & timebox overruns
This commit is contained in:
commit
cb16ff1a1b
2 changed files with 12 additions and 1 deletions
|
@ -673,6 +673,13 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
|
||||||
// refuse to process this packet if we aren't currently connected to the DS
|
// refuse to process this packet if we aren't currently connected to the DS
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#ifdef DEBUG_EVENT_QUEUE
|
||||||
|
{
|
||||||
|
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
||||||
|
qCDebug(networking) << "DomainList received, pending count =" << _domainHandler.getCheckInPacketsSinceLastReply()
|
||||||
|
<< "NodeList thread event queue size =" << nodeListQueueSize;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// warn if ping lag is getting long
|
// warn if ping lag is getting long
|
||||||
if (pingLagTime > qint64(MSECS_PER_SECOND)) {
|
if (pingLagTime > qint64(MSECS_PER_SECOND)) {
|
||||||
|
|
|
@ -334,7 +334,11 @@ void Socket::readPendingDatagrams() {
|
||||||
if (system_clock::now() > abortTime) {
|
if (system_clock::now() > abortTime) {
|
||||||
// We've been running for too long, stop processing packets for now
|
// We've been running for too long, stop processing packets for now
|
||||||
// Once we've processed the event queue, we'll come back to packet processing
|
// Once we've processed the event queue, we'll come back to packet processing
|
||||||
qCDebug(networking) << "Socket::readPendingDatagrams() running too long, aborting to process event queue";
|
#ifdef DEBUG_EVENT_QUEUE
|
||||||
|
int nodeListQueueSize = ::hifi::qt::getEventQueueSize(thread());
|
||||||
|
qCDebug(networking) << "Overran timebox by" << duration_cast<milliseconds>(system_clock::now() - abortTime).count()
|
||||||
|
<< "ms; NodeList thread event queue size =" << nodeListQueueSize;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue