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

Issue 2534633002: Preparation CL for WebRTC performance test using promise-based getStats (Closed)

Created:
4 years ago by hbos_chromium
Modified:
4 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, phoglund+watch_chromium.org, mcasas+watch+vc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Preparation CL for WebRTC performance test using promise-based getStats 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/c6ab14b0aa877c3e8e885934608d95849ff9a1a8 Cr-Commit-Position: refs/heads/master@{#435894}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed nits. Report /w ForEach, Filter, Get, GetAll, GetByType (not just Filter). #

Patch Set 3 : Rebase with master #

Patch Set 4 : Rename RTCStats[Report]Dictionary to TestStats[Report]Dictionary #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -0 lines) Patch
A chrome/browser/media/webrtc/test_stats_dictionary.h View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc/test_stats_dictionary.cc View 1 2 3 1 chunk +215 lines, -0 lines 0 comments Download
A chrome/browser/media/webrtc/test_stats_dictionary_unittest.cc View 1 2 3 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_browsertest_base.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/media/webrtc/webrtc_browsertest_base.cc View 1 2 3 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/webrtc/peerconnection_getstats.js View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (24 generated)
hbos_chromium
Please take a look, phoglund and hta. https://codereview.chromium.org/2534633002/diff/60001/chrome/browser/media/webrtc/webrtc_browsertest_base.cc File chrome/browser/media/webrtc/webrtc_browsertest_base.cc (right): https://codereview.chromium.org/2534633002/diff/60001/chrome/browser/media/webrtc/webrtc_browsertest_base.cc#newcode499 chrome/browser/media/webrtc/webrtc_browsertest_base.cc:499: std::string result ...
4 years ago (2016-11-30 11:30:57 UTC) #8
phoglund_chromium
Why do you need the new dictionary helper class? To make a more convenient way ...
4 years ago (2016-11-30 12:37:22 UTC) #9
hbos_chromium
https://codereview.chromium.org/2534633002/diff/60001/chrome/test/data/webrtc/peerconnection_getstats.js File chrome/test/data/webrtc/peerconnection_getstats.js (right): https://codereview.chromium.org/2534633002/diff/60001/chrome/test/data/webrtc/peerconnection_getstats.js#newcode279 chrome/test/data/webrtc/peerconnection_getstats.js:279: returnToTest('ok-' + JSON.stringify(reportDictionary, null, ' ')); nit: "null, ' ...
4 years ago (2016-11-30 12:38:06 UTC) #10
hbos_chromium
On 2016/11/30 12:37:22, phoglund_chrome wrote: > Why do you need the new dictionary helper class? ...
4 years ago (2016-11-30 12:48:15 UTC) #11
phoglund_chromium
On 2016/11/30 12:48:15, hbos_chromium wrote: > On 2016/11/30 12:37:22, phoglund_chrome wrote: > > Why do ...
4 years ago (2016-11-30 12:51:16 UTC) #12
hbos_chromium
Please take a look, hta.
4 years ago (2016-11-30 12:57:41 UTC) #13
hta - Chromium
Hm. Adding another set of C++ classes named RTCStatsDictionary is a Bad Idea. Can you ...
4 years ago (2016-12-01 14:52:38 UTC) #17
hbos_chromium
PTAL hta. On 2016/12/01 14:52:38, hta - Chromium wrote: > Can you rename the new ...
4 years ago (2016-12-01 15:14:56 UTC) #18
hta - Chromium
lgtm
4 years ago (2016-12-01 19:56:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534633002/160001
4 years ago (2016-12-02 08:39:24 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/317236)
4 years ago (2016-12-02 08:46:14 UTC) #30
hbos_chromium
Please take a look tommi, for the adding of these files: chrome/browser/media/webrtc/test_stats_dictionary.cc chrome/browser/media/webrtc/test_stats_dictionary.h chrome/browser/media/webrtc/test_stats_dictionary_unittest.cc Used ...
4 years ago (2016-12-02 08:57:18 UTC) #32
tommi (sloooow) - chröme
lgtm
4 years ago (2016-12-02 09:16:32 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2534633002/160001
4 years ago (2016-12-02 09:20:41 UTC) #35
commit-bot: I haz the power
Committed patchset #4 (id:160001)
4 years ago (2016-12-02 09:26:03 UTC) #38
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c6ab14b0aa877c3e8e885934608d95849ff9a1a8 Cr-Commit-Position: refs/heads/master@{#435894}
4 years ago (2016-12-02 09:27:53 UTC) #40
hbos_chromium
A revert of this CL (patchset #4 id:160001) has been created in https://codereview.chromium.org/2544033003/ by hbos@chromium.org. ...
4 years ago (2016-12-02 09:38:04 UTC) #41
findit-for-me
FYI: Findit identified this CL at revision 435894 as the culprit for failures in the ...
4 years ago (2016-12-02 09:51:16 UTC) #42
hbos_chromium
On 2016/12/02 09:51:16, findit-for-me wrote: > FYI: Findit identified this CL at revision 435894 as ...
4 years ago (2016-12-02 10:09:34 UTC) #43
hbos_chromium
4 years ago (2016-12-02 10:49:59 UTC) #44
Message was sent while issue was closed.
On 2016/12/02 10:09:34, hbos_chromium wrote:
> On 2016/12/02 09:51:16, findit-for-me wrote:
> > FYI: Findit identified this CL at revision 435894 as the culprit for
> > failures in the build cycles as shown on:
> >
>
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...
> 
> There's a mismatch between CQ and waterfall compiler settings. I'll file a
bug.

Oh, I used DCHECKs instead of CHECKs, so code that was doing the initialization
could be ignored in optimized builds.

Powered by Google App Engine
This is Rietveld 408576698