Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 16 files). Show all
Unified · Split
| @@ -18,6 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | #include <QtCore/QTimer> |
| 19 | 19 | |
| 20 | 20 | #include <LogHandler.h> |
| 21 | +#include <shared/QtHelpers.h> | |
| 21 | 22 | |
| 22 | 23 | #include "NetworkLogging.h" |
| 23 | 24 | |
| @@ -94,6 +95,10 @@ void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeTy · 70 unmodified lines | ||
| 94 | 95 | void ThreadedAssignment::addPacketStatsAndSendStatsPacket(QJsonObject statsObject) { |
| 95 | 96 | auto nodeList = DependencyManager::get<NodeList>(); |
| 96 | 97 | |
| 98 | +#ifdef DEBUG_EVENT_QUEUE | |
| 99 | + statsObject["nodelist_event_queue_size"] = ::hifi::qt::getEventQueueSize(nodeList->thread()); | |
| 100 | +#endif | |
| 101 | + | |
| 97 | 102 | QJsonObject ioStats; |
| 98 | 103 | ioStats["inbound_kbps"] = nodeList->getInboundKbps(); |
| 99 | 104 | ioStats["inbound_pps"] = nodeList->getInboundPPS(); |