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

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

Issue 8310001: Show framerate in chromoting debug log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 (function() { 8 (function() {
9 'use strict'; 9 'use strict';
10 10
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 units = 'MiBps'; 460 units = 'MiBps';
461 videoBandwidth = videoBandwidth / 1048576; 461 videoBandwidth = videoBandwidth / 1048576;
462 } else { 462 } else {
463 units = 'GiBps'; 463 units = 'GiBps';
464 videoBandwidth = videoBandwidth / 1073741824; 464 videoBandwidth = videoBandwidth / 1073741824;
465 } 465 }
466 466
467 var statistics = document.getElementById('statistics'); 467 var statistics = document.getElementById('statistics');
468 statistics.innerText = 468 statistics.innerText =
469 'Bandwidth: ' + videoBandwidth.toFixed(2) + units + 469 'Bandwidth: ' + videoBandwidth.toFixed(2) + units +
470 ', Framerate: ' +
471 (stats['video_frame_rate'] ?
472 stats['video_frame_rate'].toFixed(2) + ' fps' : 'n/a') +
470 ', Capture: ' + stats['capture_latency'].toFixed(2) + 'ms' + 473 ', Capture: ' + stats['capture_latency'].toFixed(2) + 'ms' +
471 ', Encode: ' + stats['encode_latency'].toFixed(2) + 'ms' + 474 ', Encode: ' + stats['encode_latency'].toFixed(2) + 'ms' +
472 ', Decode: ' + stats['decode_latency'].toFixed(2) + 'ms' + 475 ', Decode: ' + stats['decode_latency'].toFixed(2) + 'ms' +
473 ', Render: ' + stats['render_latency'].toFixed(2) + 'ms' + 476 ', Render: ' + stats['render_latency'].toFixed(2) + 'ms' +
474 ', Latency: ' + stats['roundtrip_latency'].toFixed(2) + 'ms'; 477 ', Latency: ' + stats['roundtrip_latency'].toFixed(2) + 'ms';
475 478
476 // Update the stats once per second. 479 // Update the stats once per second.
477 window.setTimeout(updateStatistics, 1000); 480 window.setTimeout(updateStatistics, 1000);
478 } 481 }
479 482
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 } 778 }
776 } 779 }
777 780
778 function recenterToolbar_() { 781 function recenterToolbar_() {
779 var toolbar = document.getElementById('session-toolbar'); 782 var toolbar = document.getElementById('session-toolbar');
780 var toolbarX = (window.innerWidth - toolbar.clientWidth) / 2; 783 var toolbarX = (window.innerWidth - toolbar.clientWidth) / 2;
781 toolbar.style['left'] = toolbarX + 'px'; 784 toolbar.style['left'] = toolbarX + 'px';
782 } 785 }
783 786
784 }()); 787 }());
OLDNEW
« remoting/client/chromoting_stats.cc ('K') | « remoting/webapp/me2mom/client_session.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698