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
1818 #include <QtCore/QTimer>
1919
2020 #include <LogHandler.h>
21+#include <shared/QtHelpers.h>
2122
2223 #include "NetworkLogging.h"
2324
@@ -94,6 +95,10 @@ void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeTy · 70 unmodified lines
9495 void ThreadedAssignment::addPacketStatsAndSendStatsPacket(QJsonObject statsObject) {
9596 auto nodeList = DependencyManager::get<NodeList>();
9697
98+#ifdef DEBUG_EVENT_QUEUE
99+ statsObject["nodelist_event_queue_size"] = ::hifi::qt::getEventQueueSize(nodeList->thread());
100+#endif
101+
97102 QJsonObject ioStats;
98103 ioStats["inbound_kbps"] = nodeList->getInboundKbps();
99104 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