/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ #include "call/call_basic_stats.h" #include "rtc_base/strings/string_builder.h" namespace webrtc { std::string CallBasicStats::ToString(int64_t time_ms) const { char buf[1024]; SimpleStringBuilder ss(buf); ss << "Call stats: " << time_ms << ", {"; ss << "send_bw_bps: " << send_bandwidth_bps << ", "; ss << "recv_bw_bps: " << recv_bandwidth_bps << ", "; ss << "max_pad_bps: " << max_padding_bitrate_bps << ", "; ss << "pacer_delay_ms: " << pacer_delay_ms << ", "; ss << "rtt_ms: " << rtt_ms; ss << '}'; return ss.str(); } } // namespace webrtc