OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 const RTCMediaStreamStats& other) | 342 const RTCMediaStreamStats& other) |
343 : RTCStats(other.id(), other.timestamp_us()), | 343 : RTCStats(other.id(), other.timestamp_us()), |
344 stream_identifier(other.stream_identifier), | 344 stream_identifier(other.stream_identifier), |
345 track_ids(other.track_ids) { | 345 track_ids(other.track_ids) { |
346 } | 346 } |
347 | 347 |
348 RTCMediaStreamStats::~RTCMediaStreamStats() { | 348 RTCMediaStreamStats::~RTCMediaStreamStats() { |
349 } | 349 } |
350 | 350 |
351 WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track", | 351 WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track", |
352 &track_identifier, | 352 &track_identifier, |
353 &remote_source, | 353 &remote_source, |
354 &ended, | 354 &ended, |
355 &detached, | 355 &detached, |
356 &kind, | 356 &kind, |
357 &frame_width, | 357 &frame_width, |
358 &frame_height, | 358 &frame_height, |
359 &frames_per_second, | 359 &frames_per_second, |
360 &frames_sent, | 360 &frames_sent, |
361 &frames_received, | 361 &frames_received, |
362 &frames_decoded, | 362 &frames_decoded, |
363 &frames_dropped, | 363 &frames_dropped, |
364 &frames_corrupted, | 364 &frames_corrupted, |
365 &partial_frames_lost, | 365 &partial_frames_lost, |
366 &full_frames_lost, | 366 &full_frames_lost, |
367 &audio_level, | 367 &audio_level, |
368 &echo_return_loss, | 368 &total_audio_energy, |
369 &echo_return_loss_enhancement); | 369 &total_samples_duration, |
| 370 &echo_return_loss, |
| 371 &echo_return_loss_enhancement); |
370 | 372 |
371 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 373 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
372 const std::string& id, int64_t timestamp_us, const char* kind) | 374 const std::string& id, int64_t timestamp_us, const char* kind) |
373 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { | 375 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { |
374 } | 376 } |
375 | 377 |
376 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 378 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id, |
377 std::string&& id, int64_t timestamp_us, const char* kind) | 379 int64_t timestamp_us, |
| 380 const char* kind) |
378 : RTCStats(std::move(id), timestamp_us), | 381 : RTCStats(std::move(id), timestamp_us), |
379 track_identifier("trackIdentifier"), | 382 track_identifier("trackIdentifier"), |
380 remote_source("remoteSource"), | 383 remote_source("remoteSource"), |
381 ended("ended"), | 384 ended("ended"), |
382 detached("detached"), | 385 detached("detached"), |
383 kind("kind", kind), | 386 kind("kind", kind), |
384 frame_width("frameWidth"), | 387 frame_width("frameWidth"), |
385 frame_height("frameHeight"), | 388 frame_height("frameHeight"), |
386 frames_per_second("framesPerSecond"), | 389 frames_per_second("framesPerSecond"), |
387 frames_sent("framesSent"), | 390 frames_sent("framesSent"), |
388 frames_received("framesReceived"), | 391 frames_received("framesReceived"), |
389 frames_decoded("framesDecoded"), | 392 frames_decoded("framesDecoded"), |
390 frames_dropped("framesDropped"), | 393 frames_dropped("framesDropped"), |
391 frames_corrupted("framesCorrupted"), | 394 frames_corrupted("framesCorrupted"), |
392 partial_frames_lost("partialFramesLost"), | 395 partial_frames_lost("partialFramesLost"), |
393 full_frames_lost("fullFramesLost"), | 396 full_frames_lost("fullFramesLost"), |
394 audio_level("audioLevel"), | 397 audio_level("audioLevel"), |
| 398 total_audio_energy("totalAudioEnergy"), |
| 399 total_samples_duration("totalSamplesDuration"), |
395 echo_return_loss("echoReturnLoss"), | 400 echo_return_loss("echoReturnLoss"), |
396 echo_return_loss_enhancement("echoReturnLossEnhancement") { | 401 echo_return_loss_enhancement("echoReturnLossEnhancement") { |
397 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || | 402 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || |
398 kind == RTCMediaStreamTrackKind::kVideo); | 403 kind == RTCMediaStreamTrackKind::kVideo); |
399 } | 404 } |
400 | 405 |
401 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 406 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
402 const RTCMediaStreamTrackStats& other) | 407 const RTCMediaStreamTrackStats& other) |
403 : RTCStats(other.id(), other.timestamp_us()), | 408 : RTCStats(other.id(), other.timestamp_us()), |
404 track_identifier(other.track_identifier), | 409 track_identifier(other.track_identifier), |
405 remote_source(other.remote_source), | 410 remote_source(other.remote_source), |
406 ended(other.ended), | 411 ended(other.ended), |
407 detached(other.detached), | 412 detached(other.detached), |
408 kind(other.kind), | 413 kind(other.kind), |
409 frame_width(other.frame_width), | 414 frame_width(other.frame_width), |
410 frame_height(other.frame_height), | 415 frame_height(other.frame_height), |
411 frames_per_second(other.frames_per_second), | 416 frames_per_second(other.frames_per_second), |
412 frames_sent(other.frames_sent), | 417 frames_sent(other.frames_sent), |
413 frames_received(other.frames_received), | 418 frames_received(other.frames_received), |
414 frames_decoded(other.frames_decoded), | 419 frames_decoded(other.frames_decoded), |
415 frames_dropped(other.frames_dropped), | 420 frames_dropped(other.frames_dropped), |
416 frames_corrupted(other.frames_corrupted), | 421 frames_corrupted(other.frames_corrupted), |
417 partial_frames_lost(other.partial_frames_lost), | 422 partial_frames_lost(other.partial_frames_lost), |
418 full_frames_lost(other.full_frames_lost), | 423 full_frames_lost(other.full_frames_lost), |
419 audio_level(other.audio_level), | 424 audio_level(other.audio_level), |
| 425 total_audio_energy(other.total_audio_energy), |
| 426 total_samples_duration(other.total_samples_duration), |
420 echo_return_loss(other.echo_return_loss), | 427 echo_return_loss(other.echo_return_loss), |
421 echo_return_loss_enhancement(other.echo_return_loss_enhancement) { | 428 echo_return_loss_enhancement(other.echo_return_loss_enhancement) {} |
422 } | |
423 | 429 |
424 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { | 430 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { |
425 } | 431 } |
426 | 432 |
427 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", | 433 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", |
428 &data_channels_opened, | 434 &data_channels_opened, |
429 &data_channels_closed); | 435 &data_channels_closed); |
430 | 436 |
431 RTCPeerConnectionStats::RTCPeerConnectionStats( | 437 RTCPeerConnectionStats::RTCPeerConnectionStats( |
432 const std::string& id, int64_t timestamp_us) | 438 const std::string& id, int64_t timestamp_us) |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 dtls_state(other.dtls_state), | 652 dtls_state(other.dtls_state), |
647 selected_candidate_pair_id(other.selected_candidate_pair_id), | 653 selected_candidate_pair_id(other.selected_candidate_pair_id), |
648 local_certificate_id(other.local_certificate_id), | 654 local_certificate_id(other.local_certificate_id), |
649 remote_certificate_id(other.remote_certificate_id) { | 655 remote_certificate_id(other.remote_certificate_id) { |
650 } | 656 } |
651 | 657 |
652 RTCTransportStats::~RTCTransportStats() { | 658 RTCTransportStats::~RTCTransportStats() { |
653 } | 659 } |
654 | 660 |
655 } // namespace webrtc | 661 } // namespace webrtc |
OLD | NEW |