Debug: Add accumulated data count

This commit is contained in:
Fierelier 2021-04-14 17:03:25 +02:00
parent 6e1d501703
commit 610a3429dd

View File

@ -202,9 +202,14 @@ class debugThread(threading.Thread):
def run(self): def run(self):
while True: while True:
with threadsLock: with threadsLock:
print("---")
print("Threads - IN: " +str(len(inThreads))) print("Threads - IN: " +str(len(inThreads)))
print("Threads - OUT: " +str(len(outThreads))) print("Threads - OUT: " +str(len(outThreads)))
time.sleep(10) print("ACCUMULATED DATA:")
for threadId in outThreads:
thread = outThreads[threadId]
print(threadId + ": " + str(thread.queue.qsize() * bufferSize))
time.sleep(1)
def main(): def main():
global threadId global threadId