• Home
  • Raw
  • Download

Lines Matching refs:StatsReport

64   const StatsReport::StatsValueName name;
73 StatsReport::Id GetTransportIdFromProxy(const ProxyTransportMap& map, in GetTransportIdFromProxy()
78 return StatsReport::Id(); in GetTransportIdFromProxy()
81 return StatsReport::NewComponentId( in GetTransportIdFromProxy()
85 StatsReport* AddTrackReport(StatsCollection* reports, in AddTrackReport()
88 StatsReport::Id id( in AddTrackReport()
89 StatsReport::NewTypedId(StatsReport::kStatsReportTypeTrack, track_id)); in AddTrackReport()
90 StatsReport* report = reports->ReplaceOrAddNew(id); in AddTrackReport()
91 report->AddString(StatsReport::kStatsValueNameTrackId, track_id); in AddTrackReport()
100 StatsReport* report = AddTrackReport(reports, track_id); in CreateTrackReports()
107 StatsReport* report) { in ExtractCommonSendProperties()
108 report->AddString(StatsReport::kStatsValueNameCodecName, info.codec_name); in ExtractCommonSendProperties()
109 report->AddInt64(StatsReport::kStatsValueNameBytesSent, info.bytes_sent); in ExtractCommonSendProperties()
110 report->AddInt64(StatsReport::kStatsValueNameRtt, info.rtt_ms); in ExtractCommonSendProperties()
114 StatsReport* report) { in ExtractCommonReceiveProperties()
115 report->AddString(StatsReport::kStatsValueNameCodecName, info.codec_name); in ExtractCommonReceiveProperties()
118 void SetAudioProcessingStats(StatsReport* report, in SetAudioProcessingStats()
125 report->AddBoolean(StatsReport::kStatsValueNameTypingNoiseState, in SetAudioProcessingStats()
127 report->AddFloat(StatsReport::kStatsValueNameEchoCancellationQualityMin, in SetAudioProcessingStats()
130 { StatsReport::kStatsValueNameEchoReturnLoss, echo_return_loss }, in SetAudioProcessingStats()
131 { StatsReport::kStatsValueNameEchoReturnLossEnhancement, in SetAudioProcessingStats()
133 { StatsReport::kStatsValueNameEchoDelayMedian, echo_delay_median_ms }, in SetAudioProcessingStats()
134 { StatsReport::kStatsValueNameEchoDelayStdDev, echo_delay_std_ms }, in SetAudioProcessingStats()
140 void ExtractStats(const cricket::VoiceReceiverInfo& info, StatsReport* report) { in ExtractStats()
143 { StatsReport::kStatsValueNameExpandRate, info.expand_rate }, in ExtractStats()
144 { StatsReport::kStatsValueNameSecondaryDecodedRate, in ExtractStats()
146 { StatsReport::kStatsValueNameSpeechExpandRate, info.speech_expand_rate }, in ExtractStats()
147 { StatsReport::kStatsValueNameAccelerateRate, info.accelerate_rate }, in ExtractStats()
148 { StatsReport::kStatsValueNamePreemptiveExpandRate, in ExtractStats()
153 { StatsReport::kStatsValueNameAudioOutputLevel, info.audio_level }, in ExtractStats()
154 { StatsReport::kStatsValueNameCurrentDelayMs, info.delay_estimate_ms }, in ExtractStats()
155 { StatsReport::kStatsValueNameDecodingCNG, info.decoding_cng }, in ExtractStats()
156 { StatsReport::kStatsValueNameDecodingCTN, info.decoding_calls_to_neteq }, in ExtractStats()
157 { StatsReport::kStatsValueNameDecodingCTSG, in ExtractStats()
159 { StatsReport::kStatsValueNameDecodingNormal, info.decoding_normal }, in ExtractStats()
160 { StatsReport::kStatsValueNameDecodingPLC, info.decoding_plc }, in ExtractStats()
161 { StatsReport::kStatsValueNameDecodingPLCCNG, info.decoding_plc_cng }, in ExtractStats()
162 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, in ExtractStats()
163 { StatsReport::kStatsValueNameJitterReceived, info.jitter_ms }, in ExtractStats()
164 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, in ExtractStats()
165 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, in ExtractStats()
166 { StatsReport::kStatsValueNamePreferredJitterBufferMs, in ExtractStats()
176 report->AddInt64(StatsReport::kStatsValueNameBytesReceived, in ExtractStats()
178 report->AddInt64(StatsReport::kStatsValueNameCaptureStartNtpTimeMs, in ExtractStats()
182 void ExtractStats(const cricket::VoiceSenderInfo& info, StatsReport* report) { in ExtractStats()
192 { StatsReport::kStatsValueNameAudioInputLevel, info.audio_level}, in ExtractStats()
193 { StatsReport::kStatsValueNameJitterReceived, info.jitter_ms }, in ExtractStats()
194 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, in ExtractStats()
195 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent }, in ExtractStats()
202 void ExtractStats(const cricket::VideoReceiverInfo& info, StatsReport* report) { in ExtractStats()
204 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, in ExtractStats()
206 report->AddInt64(StatsReport::kStatsValueNameBytesReceived, in ExtractStats()
208 report->AddInt64(StatsReport::kStatsValueNameCaptureStartNtpTimeMs, in ExtractStats()
211 { StatsReport::kStatsValueNameCurrentDelayMs, info.current_delay_ms }, in ExtractStats()
212 { StatsReport::kStatsValueNameDecodeMs, info.decode_ms }, in ExtractStats()
213 { StatsReport::kStatsValueNameFirsSent, info.firs_sent }, in ExtractStats()
214 { StatsReport::kStatsValueNameFrameHeightReceived, info.frame_height }, in ExtractStats()
215 { StatsReport::kStatsValueNameFrameRateDecoded, info.framerate_decoded }, in ExtractStats()
216 { StatsReport::kStatsValueNameFrameRateOutput, info.framerate_output }, in ExtractStats()
217 { StatsReport::kStatsValueNameFrameRateReceived, info.framerate_rcvd }, in ExtractStats()
218 { StatsReport::kStatsValueNameFrameWidthReceived, info.frame_width }, in ExtractStats()
219 { StatsReport::kStatsValueNameJitterBufferMs, info.jitter_buffer_ms }, in ExtractStats()
220 { StatsReport::kStatsValueNameMaxDecodeMs, info.max_decode_ms }, in ExtractStats()
221 { StatsReport::kStatsValueNameMinPlayoutDelayMs, in ExtractStats()
223 { StatsReport::kStatsValueNameNacksSent, info.nacks_sent }, in ExtractStats()
224 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, in ExtractStats()
225 { StatsReport::kStatsValueNamePacketsReceived, info.packets_rcvd }, in ExtractStats()
226 { StatsReport::kStatsValueNamePlisSent, info.plis_sent }, in ExtractStats()
227 { StatsReport::kStatsValueNameRenderDelayMs, info.render_delay_ms }, in ExtractStats()
228 { StatsReport::kStatsValueNameTargetDelayMs, info.target_delay_ms }, in ExtractStats()
235 void ExtractStats(const cricket::VideoSenderInfo& info, StatsReport* report) { in ExtractStats()
238 report->AddString(StatsReport::kStatsValueNameCodecImplementationName, in ExtractStats()
240 report->AddBoolean(StatsReport::kStatsValueNameBandwidthLimitedResolution, in ExtractStats()
242 report->AddBoolean(StatsReport::kStatsValueNameCpuLimitedResolution, in ExtractStats()
244 report->AddBoolean(StatsReport::kStatsValueNameViewLimitedResolution, in ExtractStats()
248 { StatsReport::kStatsValueNameAdaptationChanges, info.adapt_changes }, in ExtractStats()
249 { StatsReport::kStatsValueNameAvgEncodeMs, info.avg_encode_ms }, in ExtractStats()
250 { StatsReport::kStatsValueNameEncodeUsagePercent, in ExtractStats()
252 { StatsReport::kStatsValueNameFirsReceived, info.firs_rcvd }, in ExtractStats()
253 { StatsReport::kStatsValueNameFrameHeightInput, info.input_frame_height }, in ExtractStats()
254 { StatsReport::kStatsValueNameFrameHeightSent, info.send_frame_height }, in ExtractStats()
255 { StatsReport::kStatsValueNameFrameRateInput, info.framerate_input }, in ExtractStats()
256 { StatsReport::kStatsValueNameFrameRateSent, info.framerate_sent }, in ExtractStats()
257 { StatsReport::kStatsValueNameFrameWidthInput, info.input_frame_width }, in ExtractStats()
258 { StatsReport::kStatsValueNameFrameWidthSent, info.send_frame_width }, in ExtractStats()
259 { StatsReport::kStatsValueNameNacksReceived, info.nacks_rcvd }, in ExtractStats()
260 { StatsReport::kStatsValueNamePacketsLost, info.packets_lost }, in ExtractStats()
261 { StatsReport::kStatsValueNamePacketsSent, info.packets_sent }, in ExtractStats()
262 { StatsReport::kStatsValueNamePlisReceived, info.plis_rcvd }, in ExtractStats()
272 StatsReport* report) { in ExtractStats()
273 RTC_DCHECK(report->type() == StatsReport::kStatsReportTypeBwe); in ExtractStats()
277 { StatsReport::kStatsValueNameAvailableSendBandwidth, in ExtractStats()
279 { StatsReport::kStatsValueNameAvailableReceiveBandwidth, in ExtractStats()
281 { StatsReport::kStatsValueNameTargetEncBitrate, info.target_enc_bitrate }, in ExtractStats()
282 { StatsReport::kStatsValueNameActualEncBitrate, info.actual_enc_bitrate }, in ExtractStats()
283 { StatsReport::kStatsValueNameRetransmitBitrate, info.retransmit_bitrate }, in ExtractStats()
284 { StatsReport::kStatsValueNameTransmitBitrate, info.transmit_bitrate }, in ExtractStats()
288 report->AddInt64(StatsReport::kStatsValueNameBucketDelay, info.bucket_delay); in ExtractStats()
292 StatsReport* report) { in ExtractRemoteStats()
298 StatsReport* report) { in ExtractRemoteStats()
309 const StatsReport::Id& transport_id, in ExtractStatsFromList()
311 StatsReport::Direction direction) { in ExtractStatsFromList()
316 StatsReport* report = collector->PrepareReport(true, ssrc, transport_id, in ExtractStatsFromList()
406 StatsReport::Id id(StatsReport::NewTypedId(StatsReport::kStatsReportTypeTrack, in AddLocalAudioTrack()
408 StatsReport* report = reports_.Find(id); in AddLocalAudioTrack()
411 report->AddString(StatsReport::kStatsValueNameTrackId, audio_track->id()); in AddLocalAudioTrack()
440 StatsReport* report = reports_.Find(StatsReport::NewTypedId( in GetStats()
441 StatsReport::kStatsReportTypeSession, pc_->session()->id())); in GetStats()
445 report = reports_.Find(StatsReport::NewTypedId( in GetStats()
446 StatsReport::kStatsReportTypeTrack, track->id())); in GetStats()
455 if (r->type() != StatsReport::kStatsReportTypeSsrc) in GetStats()
458 const StatsReport::Value* v = in GetStats()
459 r->FindValue(StatsReport::kStatsValueNameTrackId); in GetStats()
493 StatsReport* StatsCollector::PrepareReport( in PrepareReport()
496 const StatsReport::Id& transport_id, in PrepareReport()
497 StatsReport::Direction direction) { in PrepareReport()
499 StatsReport::Id id(StatsReport::NewIdWithDirection( in PrepareReport()
500 local ? StatsReport::kStatsReportTypeSsrc in PrepareReport()
501 : StatsReport::kStatsReportTypeRemoteSsrc, in PrepareReport()
503 StatsReport* report = reports_.Find(id); in PrepareReport()
516 const StatsReport::Value* v = in PrepareReport()
517 report->FindValue(StatsReport::kStatsValueNameTrackId); in PrepareReport()
528 report->AddInt64(StatsReport::kStatsValueNameSsrc, ssrc); in PrepareReport()
529 report->AddString(StatsReport::kStatsValueNameTrackId, track_id); in PrepareReport()
531 report->AddId(StatsReport::kStatsValueNameTransportId, transport_id); in PrepareReport()
535 StatsReport* StatsCollector::AddOneCertificateReport( in AddOneCertificateReport()
536 const rtc::SSLCertificate* cert, const StatsReport* issuer) { in AddOneCertificateReport()
565 StatsReport::Id id(StatsReport::NewTypedId( in AddOneCertificateReport()
566 StatsReport::kStatsReportTypeCertificate, fingerprint)); in AddOneCertificateReport()
567 StatsReport* report = reports_.ReplaceOrAddNew(id); in AddOneCertificateReport()
569 report->AddString(StatsReport::kStatsValueNameFingerprint, fingerprint); in AddOneCertificateReport()
570 report->AddString(StatsReport::kStatsValueNameFingerprintAlgorithm, in AddOneCertificateReport()
572 report->AddString(StatsReport::kStatsValueNameDer, der_base64); in AddOneCertificateReport()
574 report->AddId(StatsReport::kStatsValueNameIssuerId, issuer->id()); in AddOneCertificateReport()
578 StatsReport* StatsCollector::AddCertificateReports( in AddCertificateReports()
588 StatsReport* issuer = nullptr; in AddCertificateReports()
604 StatsReport* StatsCollector::AddConnectionInfoReport( in AddConnectionInfoReport()
606 const StatsReport::Id& channel_report_id, in AddConnectionInfoReport()
608 StatsReport::Id id(StatsReport::NewCandidatePairId(content_name, component, in AddConnectionInfoReport()
610 StatsReport* report = reports_.ReplaceOrAddNew(id); in AddConnectionInfoReport()
614 {StatsReport::kStatsValueNameActiveConnection, info.best_connection}, in AddConnectionInfoReport()
615 {StatsReport::kStatsValueNameReceiving, info.receiving}, in AddConnectionInfoReport()
616 {StatsReport::kStatsValueNameWritable, info.writable}, in AddConnectionInfoReport()
621 report->AddId(StatsReport::kStatsValueNameChannelId, channel_report_id); in AddConnectionInfoReport()
622 report->AddId(StatsReport::kStatsValueNameLocalCandidateId, in AddConnectionInfoReport()
624 report->AddId(StatsReport::kStatsValueNameRemoteCandidateId, in AddConnectionInfoReport()
628 { StatsReport::kStatsValueNameBytesReceived, info.recv_total_bytes }, in AddConnectionInfoReport()
629 { StatsReport::kStatsValueNameBytesSent, info.sent_total_bytes }, in AddConnectionInfoReport()
630 { StatsReport::kStatsValueNamePacketsSent, info.sent_total_packets }, in AddConnectionInfoReport()
631 { StatsReport::kStatsValueNameRtt, info.rtt }, in AddConnectionInfoReport()
632 { StatsReport::kStatsValueNameSendPacketsDiscarded, in AddConnectionInfoReport()
638 report->AddString(StatsReport::kStatsValueNameLocalAddress, in AddConnectionInfoReport()
640 report->AddString(StatsReport::kStatsValueNameLocalCandidateType, in AddConnectionInfoReport()
642 report->AddString(StatsReport::kStatsValueNameRemoteAddress, in AddConnectionInfoReport()
644 report->AddString(StatsReport::kStatsValueNameRemoteCandidateType, in AddConnectionInfoReport()
646 report->AddString(StatsReport::kStatsValueNameTransportType, in AddConnectionInfoReport()
652 StatsReport* StatsCollector::AddCandidateReport( in AddCandidateReport()
655 StatsReport::Id id(StatsReport::NewCandidateId(local, candidate.id())); in AddCandidateReport()
656 StatsReport* report = reports_.Find(id); in AddCandidateReport()
661 report->AddString(StatsReport::kStatsValueNameCandidateNetworkType, in AddCandidateReport()
664 report->AddString(StatsReport::kStatsValueNameCandidateIPAddress, in AddCandidateReport()
666 report->AddString(StatsReport::kStatsValueNameCandidatePortNumber, in AddCandidateReport()
668 report->AddInt(StatsReport::kStatsValueNameCandidatePriority, in AddCandidateReport()
670 report->AddString(StatsReport::kStatsValueNameCandidateType, in AddCandidateReport()
672 report->AddString(StatsReport::kStatsValueNameCandidateTransportType, in AddCandidateReport()
683 StatsReport::Id id(StatsReport::NewTypedId( in ExtractSessionInfo()
684 StatsReport::kStatsReportTypeSession, pc_->session()->id())); in ExtractSessionInfo()
685 StatsReport* report = reports_.ReplaceOrAddNew(id); in ExtractSessionInfo()
687 report->AddBoolean(StatsReport::kStatsValueNameInitiator, in ExtractSessionInfo()
708 StatsReport::Id local_cert_report_id, remote_cert_report_id; in ExtractSessionInfo()
712 StatsReport* r = AddCertificateReports(&(certificate->ssl_certificate())); in ExtractSessionInfo()
720 StatsReport* r = AddCertificateReports(cert.get()); in ExtractSessionInfo()
726 StatsReport::Id id(StatsReport::NewComponentId( in ExtractSessionInfo()
728 StatsReport* channel_report = reports_.ReplaceOrAddNew(id); in ExtractSessionInfo()
730 channel_report->AddInt(StatsReport::kStatsValueNameComponent, in ExtractSessionInfo()
733 channel_report->AddId(StatsReport::kStatsValueNameLocalCertificateId, in ExtractSessionInfo()
737 channel_report->AddId(StatsReport::kStatsValueNameRemoteCertificateId, in ExtractSessionInfo()
744 StatsReport::kStatsValueNameSrtpCipher, in ExtractSessionInfo()
752 StatsReport::kStatsValueNameDtlsCipher, in ExtractSessionInfo()
759 StatsReport* connection_report = AddConnectionInfoReport( in ExtractSessionInfo()
764 StatsReport::kStatsValueNameSelectedCandidatePairId, in ExtractSessionInfo()
788 StatsReport::Id transport_id(GetTransportIdFromProxy( in ExtractVoiceInfo()
797 StatsReport::kReceive); in ExtractVoiceInfo()
799 StatsReport::kSend); in ExtractVoiceInfo()
821 StatsReport::Id transport_id(GetTransportIdFromProxy( in ExtractVideoInfo()
829 StatsReport::kReceive); in ExtractVideoInfo()
831 StatsReport::kSend); in ExtractVideoInfo()
835 StatsReport::Id report_id(StatsReport::NewBandwidthEstimationId()); in ExtractVideoInfo()
836 StatsReport* report = reports_.FindOrAddNew(report_id); in ExtractVideoInfo()
848 StatsReport::Id id(StatsReport::NewTypedIntId( in ExtractDataInfo()
849 StatsReport::kStatsReportTypeDataChannel, dc->id())); in ExtractDataInfo()
850 StatsReport* report = reports_.ReplaceOrAddNew(id); in ExtractDataInfo()
852 report->AddString(StatsReport::kStatsValueNameLabel, dc->label()); in ExtractDataInfo()
853 report->AddInt(StatsReport::kStatsValueNameDataChannelId, dc->id()); in ExtractDataInfo()
854 report->AddString(StatsReport::kStatsValueNameProtocol, dc->protocol()); in ExtractDataInfo()
855 report->AddString(StatsReport::kStatsValueNameState, in ExtractDataInfo()
860 StatsReport* StatsCollector::GetReport(const StatsReport::StatsType& type, in GetReport()
862 StatsReport::Direction direction) { in GetReport()
864 RTC_DCHECK(type == StatsReport::kStatsReportTypeSsrc || in GetReport()
865 type == StatsReport::kStatsReportTypeRemoteSsrc); in GetReport()
866 return reports_.Find(StatsReport::NewIdWithDirection(type, id, direction)); in GetReport()
875 StatsReport* report = in UpdateStatsFromExistingLocalAudioTracks()
876 GetReport(StatsReport::kStatsReportTypeSsrc, in UpdateStatsFromExistingLocalAudioTracks()
877 rtc::ToString<uint32_t>(ssrc), StatsReport::kSend); in UpdateStatsFromExistingLocalAudioTracks()
886 const StatsReport::Value* v = in UpdateStatsFromExistingLocalAudioTracks()
887 report->FindValue(StatsReport::kStatsValueNameTrackId); in UpdateStatsFromExistingLocalAudioTracks()
897 StatsReport* report) { in UpdateReportFromAudioTrack()
905 report->AddInt(StatsReport::kStatsValueNameAudioInputLevel, signal_level); in UpdateReportFromAudioTrack()
923 StatsReport::Direction direction) { in GetTrackIdBySsrc()
925 if (direction == StatsReport::kSend) { in GetTrackIdBySsrc()
932 RTC_DCHECK(direction == StatsReport::kReceive); in GetTrackIdBySsrc()
949 StatsReport* report = entry.second; in UpdateTrackReports()