diff --git a/call/video_send_stream.cc b/call/video_send_stream.cc index 8d3f62cb1f..fa2d4f2f8c 100644 --- a/call/video_send_stream.cc +++ b/call/video_send_stream.cc @@ -43,7 +43,7 @@ VideoSendStream::Stats::Stats() = default; VideoSendStream::Stats::~Stats() = default; std::string VideoSendStream::Stats::ToString(int64_t time_ms) const { - char buf[1024]; + char buf[2048]; rtc::SimpleStringBuilder ss(buf); ss << "VideoSendStream stats: " << time_ms << ", {"; ss << "input_fps: " << input_frame_rate << ", "; @@ -53,7 +53,15 @@ std::string VideoSendStream::Stats::ToString(int64_t time_ms) const { ss << "target_bps: " << target_media_bitrate_bps << ", "; ss << "media_bps: " << media_bitrate_bps << ", "; ss << "suspended: " << (suspended ? "true" : "false") << ", "; - ss << "bw_adapted: " << (bw_limited_resolution ? "true" : "false"); + ss << "bw_adapted_res: " << (bw_limited_resolution ? "true" : "false") + << ", "; + ss << "cpu_adapted_res: " << (cpu_limited_resolution ? "true" : "false") + << ", "; + ss << "bw_adapted_fps: " << (bw_limited_framerate ? "true" : "false") << ", "; + ss << "cpu_adapted_fps: " << (cpu_limited_framerate ? "true" : "false") + << ", "; + ss << "#cpu_adaptations: " << number_of_cpu_adapt_changes << ", "; + ss << "#quality_adaptations: " << number_of_quality_adapt_changes; ss << '}'; for (const auto& substream : substreams) { if (!substream.second.is_rtx && !substream.second.is_flexfec) {