xpra icon
Bug tracker and wiki

Ticket #999: log-queue-to-send.patch

File log-queue-to-send.patch, 1.3 KB (added by Antoine Martin, 19 months ago)

logs immediate queue to send delays

  • xpra/server/window/window_source.py

     
    17341734        coding = packet[6]
    17351735        damage_packet_sequence = packet[8]
    17361736        actual_batch_delay = process_damage_time-damage_time
     1737        queue_time = monotonic_time()
    17371738        def start_send(bytecount):
    17381739            now = monotonic_time()
    17391740            self.statistics.damage_ack_pending[damage_packet_sequence] = [now, coding, bytecount, 0, 0, width*height]
     1741            log.info("queue to send delay (start): %3ims", 1000*(now-queue_time))
    17401742        def damage_packet_sent(bytecount):
    17411743            now = monotonic_time()
    17421744            stats = self.statistics.damage_ack_pending.get(damage_packet_sequence)
     
    17471749                if damage_time>0:
    17481750                    damage_out_latency = now-process_damage_time
    17491751                    self.statistics.damage_out_latency.append((now, width*height, actual_batch_delay, damage_out_latency))
     1752            log.info("queue to send delay (end)  : %3ims", 1000*(now-queue_time))
    17501753        if damage_time>0:
    17511754            now = monotonic_time()
    17521755            damage_in_latency = now-process_damage_time