Debug: Add accumulated data count
This commit is contained in:
parent
6e1d501703
commit
610a3429dd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user