Reland "Second reland of "Optimize execution time of RTPSender::UpdateDelayStatistics""
This reverts commit 8b7bc5d7010c84ac57459518fe18309ef5fee1dd. Reason for revert: Slow RTC_DCHECK has been removed. Original change's description: > Revert "Second reland of "Optimize execution time of RTPSender::UpdateDelayStatistics"" > > This reverts commit 9def3b45ef06de9e068e8f4d1644e9d508baa913. > > Reason for revert: webrtc_perf_tests fails on Mac-10.12. > > Original change's description: > > Second reland of "Optimize execution time of RTPSender::UpdateDelayStatistics" > > > > The reland has a lot of additional DCHECKS for easier debugging, > > so in debug builds it will actually be a ~2x slowdown compared to the old code. > > The excessive DCHECKS should be removed in a followup CL. > > > > Bug: webrtc:9439 > > Change-Id: I8389cd84f1ca12c29cc6993f0d2cf7e6d7dd8379 > > Reviewed-on: https://webrtc-review.googlesource.com/101761 > > Reviewed-by: Åsa Persson <asapersson@webrtc.org> > > Reviewed-by: Björn Terelius <terelius@webrtc.org> > > Commit-Queue: Johannes Kron <kron@webrtc.org> > > Cr-Commit-Position: refs/heads/master@{#24821} > > TBR=terelius@webrtc.org,asapersson@webrtc.org,kron@webrtc.org > > Change-Id: I98c4c96d552858d0299d49993e9b9be6a6204dfe > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: webrtc:9439 > Reviewed-on: https://webrtc-review.googlesource.com/101860 > Reviewed-by: Johannes Kron <kron@webrtc.org> > Commit-Queue: Johannes Kron <kron@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#24825} TBR=terelius@webrtc.org,asapersson@webrtc.org,kron@webrtc.org Change-Id: I260c56932710d26f9d7201c07279fef8d2150bd9 Bug: webrtc:9439 Reviewed-on: https://webrtc-review.googlesource.com/102000 Reviewed-by: Björn Terelius <terelius@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Johannes Kron <kron@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24843}
This commit is contained in:
committed by
Commit Bot
parent
b8bccd530a
commit
4a8a5e7db1
@ -241,6 +241,7 @@ class RTPSender {
|
||||
const PacketOptions& options,
|
||||
const PacedPacketInfo& pacing_info);
|
||||
|
||||
void RecomputeMaxSendDelay() RTC_EXCLUSIVE_LOCKS_REQUIRED(statistics_crit_);
|
||||
void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms);
|
||||
void UpdateOnSendPacket(int packet_id,
|
||||
int64_t capture_time_ms,
|
||||
@ -298,6 +299,8 @@ class RTPSender {
|
||||
// Statistics
|
||||
rtc::CriticalSection statistics_crit_;
|
||||
SendDelayMap send_delays_ RTC_GUARDED_BY(statistics_crit_);
|
||||
SendDelayMap::const_iterator max_delay_it_ RTC_GUARDED_BY(statistics_crit_);
|
||||
int64_t sum_delays_ms_ RTC_GUARDED_BY(statistics_crit_);
|
||||
FrameCounts frame_counts_ RTC_GUARDED_BY(statistics_crit_);
|
||||
StreamDataCounters rtp_stats_ RTC_GUARDED_BY(statistics_crit_);
|
||||
StreamDataCounters rtx_rtp_stats_ RTC_GUARDED_BY(statistics_crit_);
|
||||
|
||||
Reference in New Issue
Block a user