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 | #include <QtCore/QTimer> | 18 | #include <QtCore/QTimer> |
| 19 | 19 | ||
| 20 | #include <LogHandler.h> | 20 | #include <LogHandler.h> |
| 21 | #include <shared/QtHelpers.h> | ||
| 21 | 22 | ||
| 22 | #include "NetworkLogging.h" | 23 | #include "NetworkLogging.h" |
| 23 | 24 | ||
| @@ -94,6 +95,10 @@ void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeTy · 70 unmodified lines | |||
| 94 | void ThreadedAssignment::addPacketStatsAndSendStatsPacket(QJsonObject statsObject) { | 95 | void ThreadedAssignment::addPacketStatsAndSendStatsPacket(QJsonObject statsObject) { |
| 95 | auto nodeList = DependencyManager::get<NodeList>(); | 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 | QJsonObject ioStats; | 102 | QJsonObject ioStats; |
| 98 | ioStats["inbound_kbps"] = nodeList->getInboundKbps(); | 103 | ioStats["inbound_kbps"] = nodeList->getInboundKbps(); |
| 99 | ioStats["inbound_pps"] = nodeList->getInboundPPS(); | 104 | ioStats["inbound_pps"] = nodeList->getInboundPPS(); |