DescriptionPreparation CL for WebRTC performance test using promise-based getStats
Re-land of https://codereview.chromium.org/2534633002/
In order to have a perf test looking at stats of interest we need to be
able to get the results of a JavaScript getStats call. These can be
returned as JSON-stringified JavaScript dictionaries.
In this CL:
- [g|G]etStatsReportDictionary added to webrtc_browsertest_base.cc and
peerconnection_getstats.js, which produce/read a JSON-stringified
version of the stats.
- RTCStatsReportDictionary and RTCStatsDictionary, helper classes for
reading stats from the base::Dictionary representation of the stats.
- Unittests for the helper classes.
In a follow-up CL these methods/classes will be used to obtain the
stats in the to-be-added performance test. This will yield pretty
graphs.
BUG=670306, 627816
Committed: https://crrev.com/4f0df039e3c3e854d5a527744e7855b09b4add67
Cr-Commit-Position: refs/heads/master@{#436252}
Patch Set 1 : Original CL #Patch Set 2 : CHECK instead of DCHECK so that GetBlah code is run regardless of build settings #
Total comments: 2
Patch Set 3 : Using raw string literals #
Dependent Patchsets: Messages
Total messages: 17 (9 generated)
|