| commit | 5b01b5ea63f399d13bbad661f0731893bedd8a5b | [log] [tgz] |
|---|---|---|
| author | Tommi <tommi@webrtc.org> | Tue Feb 03 12:28:48 2026 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 04 15:21:11 2026 |
| tree | 63858d9dd7ee0de717f7441c8521d0c6b93f65e3 | |
| parent | b7ef9ad622984f29c60ccbf1418ecb5cd7bb4a30 [diff] |
Refactor RTCStatsCollector to move stats production to signaling thread This is CL 1 of 2 that moves population of stats objects from the networking thread over to the signaling thread. This CL refactors RTCStatsCollector to reduce the workload on the network thread. Previously, the network thread was responsible for gathering raw data and converting it to RTCStats objects. This change moves the conversion logic (production of RTCStats objects) to the signaling thread. The network thread now only gathers the necessary raw data structs and passes them to the signaling thread. Specific changes: - ProducePartialResultsOnNetworkThread now gathers data into CollectionContext and posts a task to signaling thread. - Produce*Stats_n methods are renamed to Produce*Stats_s and moved to run on the signaling thread. - ProduceRTPStreamStats_n is moved to ProduceRTPStreamStats_s on the signaling thread. - MergeNetworkReport_s is updated to MergeNetworkFinalResults_s. - RTCStatsCollector::CollectionContext is updated to hold the intermediate raw data instead of a partial RTCStatsReport. Bug: webrtc:42222804 Change-Id: I20332f63e0cef0ffdf0df17d0e4c468af90cb8d0 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/445000 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#46806}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.