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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 RTCMediaStreamStats::RTCMediaStreamStats( | 341 RTCMediaStreamStats::RTCMediaStreamStats( |
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, |
352 &track_identifier, | 352 RTCStats, |
353 &remote_source, | 353 "track", |
hbos
2017/07/07 12:52:24
Place RTCMediaStreamTrackStats, RTCStats, "track"
Zach Stein
2017/07/07 21:27:37
Done. "git cl format" changed it and I didn't noti
| |
354 &ended, | 354 &track_identifier, |
355 &detached, | 355 &remote_source, |
356 &kind, | 356 &ended, |
357 &frame_width, | 357 &detached, |
358 &frame_height, | 358 &kind, |
359 &frames_per_second, | 359 &frame_width, |
360 &frames_sent, | 360 &frame_height, |
361 &frames_received, | 361 &frames_per_second, |
362 &frames_decoded, | 362 &frames_sent, |
363 &frames_dropped, | 363 &frames_received, |
364 &frames_corrupted, | 364 &frames_decoded, |
365 &partial_frames_lost, | 365 &frames_dropped, |
366 &full_frames_lost, | 366 &frames_corrupted, |
367 &audio_level, | 367 &partial_frames_lost, |
368 &echo_return_loss, | 368 &full_frames_lost, |
369 &echo_return_loss_enhancement); | 369 &audio_level, |
370 &total_audio_energy, | |
371 &total_samples_duration, | |
372 &echo_return_loss, | |
373 &echo_return_loss_enhancement); | |
370 | 374 |
371 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 375 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
372 const std::string& id, int64_t timestamp_us, const char* kind) | 376 const std::string& id, int64_t timestamp_us, const char* kind) |
373 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { | 377 : RTCMediaStreamTrackStats(std::string(id), timestamp_us, kind) { |
374 } | 378 } |
375 | 379 |
376 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 380 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id, |
377 std::string&& id, int64_t timestamp_us, const char* kind) | 381 int64_t timestamp_us, |
382 const char* kind) | |
378 : RTCStats(std::move(id), timestamp_us), | 383 : RTCStats(std::move(id), timestamp_us), |
379 track_identifier("trackIdentifier"), | 384 track_identifier("trackIdentifier"), |
380 remote_source("remoteSource"), | 385 remote_source("remoteSource"), |
381 ended("ended"), | 386 ended("ended"), |
382 detached("detached"), | 387 detached("detached"), |
383 kind("kind", kind), | 388 kind("kind", kind), |
384 frame_width("frameWidth"), | 389 frame_width("frameWidth"), |
385 frame_height("frameHeight"), | 390 frame_height("frameHeight"), |
386 frames_per_second("framesPerSecond"), | 391 frames_per_second("framesPerSecond"), |
387 frames_sent("framesSent"), | 392 frames_sent("framesSent"), |
388 frames_received("framesReceived"), | 393 frames_received("framesReceived"), |
389 frames_decoded("framesDecoded"), | 394 frames_decoded("framesDecoded"), |
390 frames_dropped("framesDropped"), | 395 frames_dropped("framesDropped"), |
391 frames_corrupted("framesCorrupted"), | 396 frames_corrupted("framesCorrupted"), |
392 partial_frames_lost("partialFramesLost"), | 397 partial_frames_lost("partialFramesLost"), |
393 full_frames_lost("fullFramesLost"), | 398 full_frames_lost("fullFramesLost"), |
394 audio_level("audioLevel"), | 399 audio_level("audioLevel"), |
400 total_audio_energy("totalAudioEnergy"), | |
401 total_samples_duration("totalSamplesDuration"), | |
395 echo_return_loss("echoReturnLoss"), | 402 echo_return_loss("echoReturnLoss"), |
396 echo_return_loss_enhancement("echoReturnLossEnhancement") { | 403 echo_return_loss_enhancement("echoReturnLossEnhancement") { |
397 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || | 404 RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio || |
398 kind == RTCMediaStreamTrackKind::kVideo); | 405 kind == RTCMediaStreamTrackKind::kVideo); |
399 } | 406 } |
400 | 407 |
401 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( | 408 RTCMediaStreamTrackStats::RTCMediaStreamTrackStats( |
402 const RTCMediaStreamTrackStats& other) | 409 const RTCMediaStreamTrackStats& other) |
403 : RTCStats(other.id(), other.timestamp_us()), | 410 : RTCStats(other.id(), other.timestamp_us()), |
404 track_identifier(other.track_identifier), | 411 track_identifier(other.track_identifier), |
405 remote_source(other.remote_source), | 412 remote_source(other.remote_source), |
406 ended(other.ended), | 413 ended(other.ended), |
407 detached(other.detached), | 414 detached(other.detached), |
408 kind(other.kind), | 415 kind(other.kind), |
409 frame_width(other.frame_width), | 416 frame_width(other.frame_width), |
410 frame_height(other.frame_height), | 417 frame_height(other.frame_height), |
411 frames_per_second(other.frames_per_second), | 418 frames_per_second(other.frames_per_second), |
412 frames_sent(other.frames_sent), | 419 frames_sent(other.frames_sent), |
413 frames_received(other.frames_received), | 420 frames_received(other.frames_received), |
414 frames_decoded(other.frames_decoded), | 421 frames_decoded(other.frames_decoded), |
415 frames_dropped(other.frames_dropped), | 422 frames_dropped(other.frames_dropped), |
416 frames_corrupted(other.frames_corrupted), | 423 frames_corrupted(other.frames_corrupted), |
417 partial_frames_lost(other.partial_frames_lost), | 424 partial_frames_lost(other.partial_frames_lost), |
418 full_frames_lost(other.full_frames_lost), | 425 full_frames_lost(other.full_frames_lost), |
419 audio_level(other.audio_level), | 426 audio_level(other.audio_level), |
427 total_audio_energy(other.total_audio_energy), | |
428 total_samples_duration(other.total_samples_duration), | |
420 echo_return_loss(other.echo_return_loss), | 429 echo_return_loss(other.echo_return_loss), |
421 echo_return_loss_enhancement(other.echo_return_loss_enhancement) { | 430 echo_return_loss_enhancement(other.echo_return_loss_enhancement) {} |
422 } | |
423 | 431 |
424 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { | 432 RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() { |
425 } | 433 } |
426 | 434 |
427 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", | 435 WEBRTC_RTCSTATS_IMPL(RTCPeerConnectionStats, RTCStats, "peer-connection", |
428 &data_channels_opened, | 436 &data_channels_opened, |
429 &data_channels_closed); | 437 &data_channels_closed); |
430 | 438 |
431 RTCPeerConnectionStats::RTCPeerConnectionStats( | 439 RTCPeerConnectionStats::RTCPeerConnectionStats( |
432 const std::string& id, int64_t timestamp_us) | 440 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), | 654 dtls_state(other.dtls_state), |
647 selected_candidate_pair_id(other.selected_candidate_pair_id), | 655 selected_candidate_pair_id(other.selected_candidate_pair_id), |
648 local_certificate_id(other.local_certificate_id), | 656 local_certificate_id(other.local_certificate_id), |
649 remote_certificate_id(other.remote_certificate_id) { | 657 remote_certificate_id(other.remote_certificate_id) { |
650 } | 658 } |
651 | 659 |
652 RTCTransportStats::~RTCTransportStats() { | 660 RTCTransportStats::~RTCTransportStats() { |
653 } | 661 } |
654 | 662 |
655 } // namespace webrtc | 663 } // namespace webrtc |
OLD | NEW |