OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 private: | 92 private: |
93 struct StatsUpdateTimes { | 93 struct StatsUpdateTimes { |
94 StatsUpdateTimes() : resolution_update_ms(0) {} | 94 StatsUpdateTimes() : resolution_update_ms(0) {} |
95 int64_t resolution_update_ms; | 95 int64_t resolution_update_ms; |
96 int64_t bitrate_update_ms; | 96 int64_t bitrate_update_ms; |
97 }; | 97 }; |
98 void PurgeOldStats() EXCLUSIVE_LOCKS_REQUIRED(crit_); | 98 void PurgeOldStats() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
99 VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc) | 99 VideoSendStream::StreamStats* GetStatsEntry(uint32_t ssrc) |
100 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 100 EXCLUSIVE_LOCKS_REQUIRED(crit_); |
| 101 void UpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_); |
101 | 102 |
102 Clock* const clock_; | 103 Clock* const clock_; |
103 const VideoSendStream::Config config_; | 104 const VideoSendStream::Config config_; |
104 mutable rtc::CriticalSection crit_; | 105 mutable rtc::CriticalSection crit_; |
105 VideoSendStream::Stats stats_ GUARDED_BY(crit_); | 106 VideoSendStream::Stats stats_ GUARDED_BY(crit_); |
106 rtc::RateTracker input_frame_rate_tracker_ GUARDED_BY(crit_); | 107 rtc::RateTracker input_frame_rate_tracker_ GUARDED_BY(crit_); |
| 108 rtc::RateTracker input_frame_rate_tracker_total_ GUARDED_BY(crit_); |
| 109 rtc::RateTracker sent_frame_rate_tracker_total_ GUARDED_BY(crit_); |
| 110 uint32_t last_sent_frame_timestamp_ GUARDED_BY(crit_); |
107 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_); | 111 std::map<uint32_t, StatsUpdateTimes> update_times_ GUARDED_BY(crit_); |
108 }; | 112 }; |
109 | 113 |
110 } // namespace webrtc | 114 } // namespace webrtc |
111 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ | 115 #endif // WEBRTC_VIDEO_SEND_STATISTICS_PROXY_H_ |
OLD | NEW |