Henrik Boström
54be7084e0
[Stats] Attribute::ToString(), to replace member ValueToString/ToJson.
...
Delete RTCStatsMember<T>::ValueToString() and ValueToJson() in favor of
Attribute::ToString().
The difference between "ToString" and "ToJson" is that the "ToJson"
version converts 64-bit integers and doubles to floating points with no
more than ~15 digits of precision as to not exceed JSON's precision
limitations. So only in edge cases of really large numbers or numbers
with a silly number of digits will the two methods produce different
results. Also JSON puts '\"' around map key names, e.g. "{\"foo\":123}"
as opposed to "{foo:123}".
Going forward we see no reason to maintain two different string
converted paths that are this similar, so we only implement one
Attribute::ToString() method which does what "ToJson" did.
In the next CL we can delete RTCStatsMember<T>.
Bug: webrtc:15164
Change-Id: Iaa8cf3bf14b40dc44664f75989832469603131c5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/334640
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Evan Shrubsole <eshr@google.com>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41544}
2024-01-17 12:36:46 +00:00
..
2023-06-09 14:14:12 +00:00
2024-01-16 08:53:28 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2024-01-17 11:41:18 +00:00
2023-06-29 09:32:04 +00:00
2023-11-14 08:14:14 +00:00
2023-11-30 14:06:01 +00:00
2023-10-30 14:43:46 +00:00
2023-12-06 18:01:06 +00:00
2023-12-06 18:01:06 +00:00
2023-11-13 13:23:04 +00:00
2023-06-22 09:13:29 +00:00
2023-05-15 14:52:12 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2023-05-03 11:09:26 +00:00
2023-03-12 17:28:14 +00:00
2023-09-05 11:37:32 +00:00
2023-08-22 13:48:09 +00:00
2023-11-11 11:22:01 +00:00
2023-12-14 21:01:04 +00:00
2023-12-14 21:01:04 +00:00
2022-08-03 14:16:35 +00:00
2022-09-09 10:44:17 +00:00
2022-09-09 10:44:17 +00:00
2023-11-13 13:23:04 +00:00
2023-04-21 11:19:37 +00:00
2022-10-12 11:23:22 +00:00
2023-11-13 13:23:04 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2023-06-05 23:23:40 +00:00
2023-03-02 12:28:29 +00:00
2023-03-24 07:44:18 +00:00
2024-01-12 00:14:43 +00:00
2024-01-12 00:14:43 +00:00
2024-01-12 00:14:43 +00:00
2022-08-19 10:55:47 +00:00
2023-10-06 12:25:37 +00:00
2022-08-22 13:51:17 +00:00
2022-11-14 12:10:06 +00:00
2023-04-24 15:30:07 +00:00
2023-12-21 14:58:48 +00:00
2023-11-13 13:23:04 +00:00
2023-12-04 14:42:44 +00:00
2023-12-12 02:09:11 +00:00
2024-01-08 14:03:19 +00:00
2023-11-17 11:54:11 +00:00
2023-11-13 13:23:04 +00:00
2023-01-30 20:09:07 +00:00
2023-03-22 09:10:27 +00:00
2023-10-09 05:59:48 +00:00
2024-01-16 08:30:37 +00:00
2023-11-03 12:32:14 +00:00
2024-01-17 10:35:14 +00:00
2024-01-03 12:03:11 +00:00
2023-11-13 13:23:04 +00:00
2023-11-27 16:46:27 +00:00
2024-01-08 13:54:56 +00:00
2024-01-08 13:54:56 +00:00
2023-11-13 13:23:04 +00:00
2023-12-07 21:46:56 +00:00
2023-12-05 15:44:43 +00:00
2023-11-13 13:23:04 +00:00
2023-11-30 15:36:55 +00:00
2023-12-14 14:50:31 +00:00
2023-10-21 16:25:11 +00:00
2023-11-03 12:32:14 +00:00
2024-01-16 08:30:37 +00:00
2022-11-11 10:29:25 +00:00
2022-11-11 10:29:25 +00:00
2022-10-19 09:13:08 +00:00
2024-01-17 12:36:46 +00:00
2023-12-14 14:50:31 +00:00
2024-01-16 08:30:37 +00:00
2023-12-19 09:12:18 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2023-02-10 12:24:47 +00:00
2023-12-19 09:12:18 +00:00
2023-12-06 15:52:37 +00:00
2023-05-03 11:09:26 +00:00
2022-12-14 11:00:17 +00:00
2022-12-14 11:00:17 +00:00
2024-01-17 09:10:10 +00:00
2023-12-20 16:14:05 +00:00
2023-11-13 13:23:04 +00:00
2024-01-17 12:36:46 +00:00
2023-11-13 13:23:04 +00:00
2023-05-24 12:26:56 +00:00
2023-06-15 15:53:29 +00:00
2023-06-15 15:53:29 +00:00
2023-06-15 15:53:29 +00:00
2023-01-05 09:04:12 +00:00
2023-08-30 14:54:17 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 13:23:04 +00:00
2023-11-13 15:19:53 +00:00
2023-12-08 11:29:46 +00:00
2024-01-09 13:09:59 +00:00
2023-11-13 13:23:04 +00:00
2023-01-19 15:49:04 +00:00
2023-08-28 12:36:39 +00:00
2023-11-13 13:23:04 +00:00
2023-11-06 09:52:43 +00:00
2023-11-13 13:23:04 +00:00
2023-11-08 10:24:10 +00:00
2023-08-25 09:07:29 +00:00
2023-04-18 12:12:52 +00:00
2023-03-21 13:57:47 +00:00
2023-03-21 13:57:47 +00:00
2023-11-13 13:23:04 +00:00
2024-01-16 09:10:09 +00:00
2023-11-22 11:46:25 +00:00
2023-03-21 13:45:51 +00:00
2024-01-08 14:03:19 +00:00
2024-01-12 00:14:43 +00:00
2023-11-13 13:23:04 +00:00
2023-05-03 11:09:26 +00:00
2024-01-08 14:03:19 +00:00
2023-09-18 10:09:02 +00:00
2023-09-18 10:09:02 +00:00
2023-09-18 10:09:02 +00:00
2023-11-23 10:40:56 +00:00
2023-08-02 11:45:24 +00:00
2023-08-02 11:45:24 +00:00
2023-08-02 11:45:24 +00:00
2023-11-08 10:24:10 +00:00
2023-11-08 10:24:10 +00:00
2023-11-08 10:24:10 +00:00
2023-11-13 13:23:04 +00:00
2023-11-11 11:22:01 +00:00
2023-11-11 11:22:01 +00:00
2023-05-24 12:26:56 +00:00
2023-05-24 12:26:56 +00:00
2023-05-24 12:26:56 +00:00
2023-10-06 12:25:37 +00:00
2023-09-25 14:54:22 +00:00
2023-11-13 13:23:04 +00:00
2023-09-01 08:12:55 +00:00
2023-01-10 06:44:27 +00:00
2023-11-13 13:23:04 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2023-11-13 13:23:04 +00:00
2023-03-24 07:44:18 +00:00
2023-03-24 07:44:18 +00:00
2022-09-09 10:44:17 +00:00
2023-11-13 13:23:04 +00:00
2024-01-08 14:03:19 +00:00
2024-01-08 14:03:19 +00:00
2024-01-03 12:03:11 +00:00
2023-09-26 09:41:30 +00:00
2023-09-18 15:23:38 +00:00