Ticket #2381: test-client-frame-latency-dump.patch
File test-client-frame-latency-dump.patch, 847 bytes (added by , 20 months ago) |
---|
-
tests/xpra/test_measure_perf.py
673 673 values.append(s.get(full_name)) 674 674 #strip missing values: 675 675 values = [x for x in values if x is not None and x!=""] 676 if name=="Client Frame Latency": 677 print("Client Frame Latency values: %s" % (values,)) 676 678 if values: 677 679 v = op(values) #ie: avg([4,5,4]) or max([4,5,4]) 678 680 #print("%s: %s(%s)=%s" % (full_name, op, values, v)) 679 681 data[full_name] = v 682 if name=="Client Frame Latency": 683 print("Client Frame Latency data: %s" % (v,)) 680 684 681 685 def avg(l): 682 686 return sum(l)/len(l)