Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: remoting/webapp/me2mom/client_session.js

Issue 8310001: Show framerate in chromoting debug log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops.. compile error. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * Session class that handles creation and teardown of a remoting session. 7 * Session class that handles creation and teardown of a remoting session.
8 * 8 *
9 * This abstracts a <embed> element and controls the plugin which does the 9 * This abstracts a <embed> element and controls the plugin which does the
10 * actual remoting work. There should be no UI code inside this class. It 10 * actual remoting work. There should be no UI code inside this class. It
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 }; 396 };
397 397
398 /** 398 /**
399 * Returns an associative array with a set of stats for this connection. 399 * Returns an associative array with a set of stats for this connection.
400 * 400 *
401 * @return {Object} The connection statistics. 401 * @return {Object} The connection statistics.
402 */ 402 */
403 remoting.ClientSession.prototype.stats = function() { 403 remoting.ClientSession.prototype.stats = function() {
404 return { 404 return {
405 'video_bandwidth': this.plugin.videoBandwidth, 405 'video_bandwidth': this.plugin.videoBandwidth,
406 'video_frame_rate': this.plugin.videoFramerate,
406 'capture_latency': this.plugin.videoCaptureLatency, 407 'capture_latency': this.plugin.videoCaptureLatency,
407 'encode_latency': this.plugin.videoEncodeLatency, 408 'encode_latency': this.plugin.videoEncodeLatency,
408 'decode_latency': this.plugin.videoDecodeLatency, 409 'decode_latency': this.plugin.videoDecodeLatency,
409 'render_latency': this.plugin.videoRenderLatency, 410 'render_latency': this.plugin.videoRenderLatency,
410 'roundtrip_latency': this.plugin.roundTripLatency 411 'roundtrip_latency': this.plugin.roundTripLatency
411 }; 412 };
412 }; 413 };
413 414
414 }()); 415 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698