History

Debugging code to monitor the queue depth for a few critical threads

Roxanne Skelly committed 7 years ago

Commit 72fe3a61 parent 4ee393516 files · +177 −38Browse files

Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 16 files). Show all

Unified · Split

libraries/networking/src/ThreadedAssignment.cpp+5−0
@@ -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
94void ThreadedAssignment::addPacketStatsAndSendStatsPacket(QJsonObject statsObject) {95void 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();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t