Show rect/enc counts, add vnc_perf.html test.

- include/rfb.js: Keep track of the number of rects of each encoding
  type and print them out when we close a connection (if 'info'
  logging level).

- tests/vnc_perf.html: first pass at a noVNC based performance
  benchmark.

- utils/wsproxy.py: Fix the output of the record filename.
This commit is contained in:
Joel Martin
2010-09-25 15:50:43 -05:00
parent 3b20e7a90f
commit a679a97d1b
3 changed files with 241 additions and 10 deletions

View File

@@ -101,12 +101,13 @@ def do_proxy(client, target):
cpartial = cpartial + buf
def proxy_handler(client):
global target_host, target_port, options, rec
global target_host, target_port, options, rec, fname
if settings['record']:
handler_msg("opening record file: %s" % settings['record'])
rec = open("%s.%s" % (settings['record'],
settings['handler_id']), 'w+')
fname = "%s.%s" % (settings['record'],
settings['handler_id'])
handler_msg("opening record file: %s" % fname)
rec = open(fname, 'w+')
rec.write("var VNC_frame_data = [\n")
handler_msg("connecting to: %s:%s" % (target_host, target_port))