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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user