tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

call_basic_stats.cc (891B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
      6 
      7 #include "call/call_basic_stats.h"
      8 
      9 #include "rtc_base/strings/string_builder.h"
     10 
     11 namespace webrtc {
     12 
     13 std::string CallBasicStats::ToString(int64_t time_ms) const {
     14  char buf[1024];
     15  SimpleStringBuilder ss(buf);
     16  ss << "Call stats: " << time_ms << ", {";
     17  ss << "send_bw_bps: " << send_bandwidth_bps << ", ";
     18  ss << "recv_bw_bps: " << recv_bandwidth_bps << ", ";
     19  ss << "max_pad_bps: " << max_padding_bitrate_bps << ", ";
     20  ss << "pacer_delay_ms: " << pacer_delay_ms << ", ";
     21  ss << "rtt_ms: " << rtt_ms;
     22  ss << '}';
     23  return ss.str();
     24 }
     25 
     26 }  // namespace webrtc