| 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; | |
| 299 return entry; | 294 return entry; |
| 300 } | 295 } |
| 301 return null; | 296 return null; |
| 302 }; | 297 }; |
| 303 | 298 |
| 304 /** | 299 /** |
| 305 * Moves connection statistics from the accumulator to the log server. | 300 * Moves connection statistics from the accumulator to the log server. |
| 306 * | 301 * |
| 307 * If all the statistics are zero, then the accumulator is still emptied, | 302 * If all the statistics are zero, then the accumulator is still emptied, |
| 308 * but the statistics are not sent to the log server. | 303 * but the statistics are not sent to the log server. |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 } | 461 } |
| 467 | 462 |
| 468 // The maximum age of a session ID, in milliseconds. | 463 // The maximum age of a session ID, in milliseconds. |
| 469 remoting.SessionLogger.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000; | 464 remoting.SessionLogger.MAX_SESSION_ID_AGE = 24 * 60 * 60 * 1000; |
| 470 | 465 |
| 471 // The time over which to accumulate connection statistics before logging them | 466 // The time over which to accumulate connection statistics before logging them |
| 472 // to the server, in milliseconds. | 467 // to the server, in milliseconds. |
| 473 remoting.SessionLogger.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000; | 468 remoting.SessionLogger.CONNECTION_STATS_ACCUMULATE_TIME = 60 * 1000; |
| 474 | 469 |
| 475 })(); | 470 })(); |
| OLD | NEW |