mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 22:13:29 +02:00
Logging for DomainList reception & timebox overruns
This commit is contained in:
parent
024dfbf8b7
commit
6befbdafe9
2 changed files with 12 additions and 0 deletions
libraries/networking/src
|
@ -622,6 +622,13 @@ void NodeList::processDomainServerList(QSharedPointer<ReceivedMessage> message)
|
|||
// refuse to process this packet if we aren't currently connected to the DS
|
||||
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
|
||||
|
||||
// this is a packet from the domain server, reset the count of un-replied check-ins
|
||||
_domainHandler.clearPendingCheckins();
|
||||
|
|
|
@ -334,6 +334,11 @@ void Socket::readPendingDatagrams() {
|
|||
if (system_clock::now() > abortTime) {
|
||||
// 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
|
||||
#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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue