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

Issue 2983243002: Make RTCStatsReport::ToString() return JSON-parseable string. (Closed)

Created:
3 years, 5 months ago by ehmaldonado_webrtc
Modified:
3 years, 4 months ago
Reviewers:
hbos
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Make RTCStatsReport::ToString() return JSON-parseable string. BUG=chromium:653087 Review-Url: https://codereview.webrtc.org/2983243002 Cr-Commit-Position: refs/heads/master@{#19180} Committed: https://chromium.googlesource.com/external/webrtc/+/35a872c0e6752f1c2ccd1fd15f6f721612ee180a

Patch Set 1 #

Patch Set 2 : Revert changes to rtcstats_integrationtest.cc. #

Patch Set 3 : Add test. #

Total comments: 6

Patch Set 4 : Display Int64 values as doubles. #

Total comments: 9

Patch Set 5 : Address comments. Display doubles with greater precision." #

Total comments: 2

Patch Set 6 : Address nit. #

Patch Set 7 : Replace ToString with ToJson in test files. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -79 lines) Patch
M webrtc/api/stats/rtcstats.h View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download
M webrtc/api/stats/rtcstatsreport.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/pc/rtcstats_integrationtest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/pc/rtcstatscollector_unittest.cc View 1 2 3 4 5 6 1 chunk +12 lines, -12 lines 0 comments Download
M webrtc/stats/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/stats/rtcstats.cc View 1 2 3 4 5 4 chunks +138 lines, -57 lines 0 comments Download
M webrtc/stats/rtcstats_unittest.cc View 1 2 3 4 2 chunks +135 lines, -0 lines 0 comments Download
M webrtc/stats/rtcstatsreport.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
ehmaldonado_webrtc
PTAL I'm not sure about moving the type from outside to a field called "type" ...
3 years, 5 months ago (2017-07-21 12:13:31 UTC) #3
ehmaldonado_webrtc
PTAL I'm not sure about moving the type from outside to a field called "type" ...
3 years, 5 months ago (2017-07-21 12:13:33 UTC) #4
hbos
On 2017/07/21 12:13:33, ehmaldonado_webrtc wrote: > PTAL > I'm not sure about moving the type ...
3 years, 5 months ago (2017-07-24 15:00:35 UTC) #5
ehmaldonado_webrtc
> Isn't the type already a field inside the dict? It should be. All stats ...
3 years, 5 months ago (2017-07-24 15:37:13 UTC) #6
hbos
On 2017/07/24 15:37:13, ehmaldonado_webrtc wrote: > > Isn't the type already a field inside the ...
3 years, 5 months ago (2017-07-24 15:50:22 UTC) #7
ehmaldonado_webrtc
On 2017/07/24 15:50:22, hbos wrote: > On 2017/07/24 15:37:13, ehmaldonado_webrtc wrote: > > > Isn't ...
3 years, 5 months ago (2017-07-25 08:46:16 UTC) #8
hbos
https://codereview.webrtc.org/2983243002/diff/40001/webrtc/api/stats/rtcstats.h File webrtc/api/stats/rtcstats.h (right): https://codereview.webrtc.org/2983243002/diff/40001/webrtc/api/stats/rtcstats.h#newcode77 webrtc/api/stats/rtcstats.h:77: std::string ToString() const; Let's rename it ToJson(). https://codereview.webrtc.org/2983243002/diff/40001/webrtc/api/stats/rtcstatsreport.h File ...
3 years, 5 months ago (2017-07-25 12:29:22 UTC) #9
ehmaldonado_webrtc
PTAL https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstats.cc File webrtc/stats/rtcstats.cc (right): https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstats.cc#newcode148 webrtc/stats/rtcstats.cc:148: #define WEBRTC_DEFINE_RTCSTATSMEMBER_DEFAULT_JSON(T, type, is_seq, is_str, \ I ran ...
3 years, 4 months ago (2017-07-27 08:56:29 UTC) #10
hbos
https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstats.cc File webrtc/stats/rtcstats.cc (right): https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstats.cc#newcode56 webrtc/stats/rtcstats.cc:56: oss << std::setprecision(DBL_DIG + 1) << static_cast<double>(value); nit: Hm, ...
3 years, 4 months ago (2017-07-27 16:27:41 UTC) #11
hbos
https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstatsreport.cc File webrtc/stats/rtcstatsreport.cc (right): https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstatsreport.cc#newcode114 webrtc/stats/rtcstatsreport.cc:114: oss << ']'; On 2017/07/27 16:27:41, hbos wrote: > ...
3 years, 4 months ago (2017-07-27 16:29:28 UTC) #12
ehmaldonado_webrtc
PTAL. I also think it'd be a good idea to print doubles using 15 digits.
3 years, 4 months ago (2017-07-28 09:15:16 UTC) #13
ehmaldonado_webrtc
https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstatsreport.cc File webrtc/stats/rtcstatsreport.cc (right): https://codereview.webrtc.org/2983243002/diff/60001/webrtc/stats/rtcstatsreport.cc#newcode114 webrtc/stats/rtcstatsreport.cc:114: oss << ']'; Yes, an array is parseable by ...
3 years, 4 months ago (2017-07-28 09:15:43 UTC) #14
hbos
lgtm https://codereview.webrtc.org/2983243002/diff/80001/webrtc/stats/rtcstats.cc File webrtc/stats/rtcstats.cc (right): https://codereview.webrtc.org/2983243002/diff/80001/webrtc/stats/rtcstats.cc#newcode22 webrtc/stats/rtcstats.cc:22: // Produces "[ a, b, c ]". Works ...
3 years, 4 months ago (2017-07-28 09:30:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2983243002/100001
3 years, 4 months ago (2017-07-28 13:21:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_arm64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_dbg/builds/22359) mac_compile_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 4 months ago (2017-07-28 13:24:40 UTC) #20
ehmaldonado_webrtc
PTAL, I had to replace ToString with ToJson in a couple other files. I was ...
3 years, 4 months ago (2017-07-28 13:53:38 UTC) #21
hbos
lgtm
3 years, 4 months ago (2017-07-28 13:57:46 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2983243002/120001
3 years, 4 months ago (2017-07-28 14:02:19 UTC) #24
commit-bot: I haz the power
3 years, 4 months ago (2017-07-28 14:29:32 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/external/webrtc/+/35a872c0e6752f1c2ccd1fd15...

Powered by Google App Engine
This is Rietveld 408576698