OLD | NEW |
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 Loading... |
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 }()); |
OLD | NEW |