| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @suppress {duplicate} */ | 6 /** @suppress {duplicate} */ | 
| 7 var remoting = remoting || {}; | 7 var remoting = remoting || {}; | 
| 8 | 8 | 
| 9 (function() { | 9 (function() { | 
| 10 | 10 | 
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 284   if (Boolean(perfStats)) { | 284   if (Boolean(perfStats)) { | 
| 285     var entry = new remoting.ChromotingEvent( | 285     var entry = new remoting.ChromotingEvent( | 
| 286         remoting.ChromotingEvent.Type.CONNECTION_STATISTICS); | 286         remoting.ChromotingEvent.Type.CONNECTION_STATISTICS); | 
| 287     this.fillEvent_(entry); | 287     this.fillEvent_(entry); | 
| 288     entry.video_bandwidth = perfStats.videoBandwidth; | 288     entry.video_bandwidth = perfStats.videoBandwidth; | 
| 289     entry.capture_latency = perfStats.captureLatency; | 289     entry.capture_latency = perfStats.captureLatency; | 
| 290     entry.encode_latency = perfStats.encodeLatency; | 290     entry.encode_latency = perfStats.encodeLatency; | 
| 291     entry.decode_latency = perfStats.decodeLatency; | 291     entry.decode_latency = perfStats.decodeLatency; | 
| 292     entry.render_latency = perfStats.renderLatency; | 292     entry.render_latency = perfStats.renderLatency; | 
| 293     entry.roundtrip_latency = perfStats.roundtripLatency; | 293     entry.roundtrip_latency = perfStats.roundtripLatency; | 
|  | 294     entry.max_capture_latency = perfStats.maxCaptureLatency; | 
|  | 295     entry.max_encode_latency = perfStats.maxEncodeLatency; | 
|  | 296     entry.max_decode_latency = perfStats.maxDecodeLatency; | 
|  | 297     entry.max_render_latency = perfStats.maxRenderLatency; | 
|  | 298     entry.max_roundtrip_latency = perfStats.maxRoundtripLatency; | 
| 294     return entry; | 299     return entry; | 
| 295   } | 300   } | 
| 296   return null; | 301   return null; | 
| 297 }; | 302 }; | 
| 298 | 303 | 
| 299 /** | 304 /** | 
| 300  * Moves connection statistics from the accumulator to the log server. | 305  * Moves connection statistics from the accumulator to the log server. | 
| 301  * | 306  * | 
| 302  * If all the statistics are zero, then the accumulator is still emptied, | 307  * If all the statistics are zero, then the accumulator is still emptied, | 
| 303  * but the statistics are not sent to the log server. | 308  * but the statistics are not sent to the log server. | 
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 461 } | 466 } | 
| 462 | 467 | 
| 463 // The maximum age of a session ID, in milliseconds. | 468 // The maximum age of a session ID, in milliseconds. | 
| 464 remoting.SessionLogger.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000; | 469 remoting.SessionLogger.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000; | 
| 465 | 470 | 
| 466 // The time over which to accumulate connection statistics before logging them | 471 // The time over which to accumulate connection statistics before logging them | 
| 467 // to the server, in milliseconds. | 472 // to the server, in milliseconds. | 
| 468 remoting.SessionLogger.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000; | 473 remoting.SessionLogger.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000; | 
| 469 | 474 | 
| 470 })(); | 475 })(); | 
| OLD | NEW | 
|---|