Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1281)

Side by Side Diff: webrtc/stats/rtcstats.cc

Issue 2299643002: RTCStatsCollector: timestamps updated. (Closed)
Patch Set: uint64_t -> int64_t timestamps Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/api/rtcstats_objects.h ('k') | webrtc/stats/rtcstats_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 oss << " }"; 45 oss << " }";
46 return oss.str(); 46 return oss.str();
47 } 47 }
48 48
49 } // namespace 49 } // namespace
50 50
51 std::string RTCStats::ToString() const { 51 std::string RTCStats::ToString() const {
52 std::ostringstream oss; 52 std::ostringstream oss;
53 oss << type() << " {\n id: \"" << id_ << "\"\n timestamp: " 53 oss << type() << " {\n id: \"" << id_ << "\"\n timestamp: "
54 << timestamp_ << '\n'; 54 << timestamp_us_ << '\n';
55 for (const RTCStatsMemberInterface* member : Members()) { 55 for (const RTCStatsMemberInterface* member : Members()) {
56 oss << " " << member->name() << ": "; 56 oss << " " << member->name() << ": ";
57 if (member->is_defined()) { 57 if (member->is_defined()) {
58 if (member->is_string()) 58 if (member->is_string())
59 oss << '"' << member->ValueToString() << "\"\n"; 59 oss << '"' << member->ValueToString() << "\"\n";
60 else 60 else
61 oss << member->ValueToString() << '\n'; 61 oss << member->ValueToString() << '\n';
62 } else { 62 } else {
63 oss << "undefined\n"; 63 oss << "undefined\n";
64 } 64 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 std::vector<double>, kSequenceDouble, true, false, 123 std::vector<double>, kSequenceDouble, true, false,
124 VectorToString(value_)); 124 VectorToString(value_));
125 WEBRTC_DEFINE_RTCSTATSMEMBER( 125 WEBRTC_DEFINE_RTCSTATSMEMBER(
126 std::vector<const char*>, kSequenceStaticString, true, false, 126 std::vector<const char*>, kSequenceStaticString, true, false,
127 VectorOfStringsToString(value_)); 127 VectorOfStringsToString(value_));
128 WEBRTC_DEFINE_RTCSTATSMEMBER( 128 WEBRTC_DEFINE_RTCSTATSMEMBER(
129 std::vector<std::string>, kSequenceString, true, false, 129 std::vector<std::string>, kSequenceString, true, false,
130 VectorOfStringsToString(value_)); 130 VectorOfStringsToString(value_));
131 131
132 } // namespace webrtc 132 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtcstats_objects.h ('k') | webrtc/stats/rtcstats_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698