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

Side by Side Diff: webrtc/video/send_statistics_proxy.h

Issue 1169543005: Add sent framerates to histogram stats: (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/send_statistics_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698