summaryrefslogtreecommitdiffstats
path: root/remoting/webapp
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 23:01:04 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 23:01:04 +0000
commit54409d436120384964bdc856d97b60c1d0dcbf79 (patch)
treebe7f903669f69e9a9fe377e1dca62aed4eca6f3b /remoting/webapp
parent44dcaebe9d6b5896ce4aad3ab3f64f68a3043f9d (diff)
downloadchromium_src-54409d436120384964bdc856d97b60c1d0dcbf79.zip
chromium_src-54409d436120384964bdc856d97b60c1d0dcbf79.tar.gz
chromium_src-54409d436120384964bdc856d97b60c1d0dcbf79.tar.bz2
Print round trip latency in chromoting webapp
Print the latency of sending an event to receiving a recorresponding video frame. BUG=None TEST=None Review URL: http://codereview.chromium.org/7235011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp')
-rw-r--r--remoting/webapp/me2mom/remoting_session.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/webapp/me2mom/remoting_session.js b/remoting/webapp/me2mom/remoting_session.js
index 9d8e861..055fc7e 100644
--- a/remoting/webapp/me2mom/remoting_session.js
+++ b/remoting/webapp/me2mom/remoting_session.js
@@ -290,6 +290,7 @@ function updateStatusBarStats() {
var videoEncodeLatency = remoting.plugin.videoEncodeLatency;
var videoDecodeLatency = remoting.plugin.videoDecodeLatency;
var videoRenderLatency = remoting.plugin.videoRenderLatency;
+ var roundTripLatency = remoting.plugin.roundTripLatency;
var units = '';
if (videoBandwidth < 1024) {
@@ -310,7 +311,8 @@ function updateStatusBarStats() {
', Capture: ' + videoCaptureLatency.toFixed(2) + 'ms' +
', Encode: ' + videoEncodeLatency.toFixed(2) + 'ms' +
', Decode: ' + videoDecodeLatency.toFixed(2) + 'ms' +
- ', Render: ' + videoRenderLatency.toFixed(2) + 'ms');
+ ', Render: ' + videoRenderLatency.toFixed(2) + 'ms' +
+ ', Latency: ' + roundTripLatency.toFixed(2) + 'ms');
// Update the stats once per second.
window.setTimeout('updateStatusBarStats()', 1000);