DescriptionImplements peer connection stats measurements in WebRTC call test.
The telemetry test for WebRTC has so far been measuring CPU and memory.
Since there's a stats API for WebRTC (see http://goo.gl/lfQKzE), we try
to use that do extract interesting properties about the call. The
properties we look at are such that we expect them to remain stable, so
a sudden change in any of them will warrant investigation.
This implementation is based on a trick where we instrument the
constructor for webkitRTCPeerConnection. Whenever a peer connection is
constructed, we attach a polling function which periodically polls the
connection for new stats (that's how the stats API works). Then we
make it easy for a measurement to extract this data, aggregate it into
time series and report it through Telemetry.
BUG=412787
Committed: https://crrev.com/1d2d8d71fc4ce119e6847a8c8aa667cf003c87ad
Cr-Commit-Position: refs/heads/master@{#300249}
Patch Set 1 #Patch Set 2 : #
Total comments: 17
Patch Set 3 : Added unittest, addressed comments #Patch Set 4 : Not tracking page 3 after all (it's only local) #Patch Set 5 : Now tracking peer connections for all webrtc pages. #
Total comments: 1
Patch Set 6 : Rebased #
Messages
Total messages: 22 (5 generated)
|