Plot NetEq stats in RTC event log visualizer.

Bug: webrtc:9147
Change-Id: I61ec7bc5299201e25e1efc503b73b84d5be3ebbf
Reviewed-on: https://webrtc-review.googlesource.com/71740
Commit-Queue: Minyue Li <minyue@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23151}
This commit is contained in:
Minyue Li
2018-05-07 15:20:24 +02:00
committed by Commit Bot
parent 0424c19fda
commit 27e2b7d177
6 changed files with 127 additions and 68 deletions

View File

@ -633,8 +633,7 @@ void ParsedRtcEventLogNew::StoreParsedEvent(const rtclog::Event& event) {
}
case ParsedRtcEventLogNew::AUDIO_PLAYOUT_EVENT: {
LoggedAudioPlayoutEvent playout_event = GetAudioPlayout(event);
audio_playout_events_[playout_event.ssrc].push_back(
playout_event.timestamp_us);
audio_playout_events_[playout_event.ssrc].push_back(playout_event);
break;
}
case ParsedRtcEventLogNew::LOSS_BASED_BWE_UPDATE: {

View File

@ -636,7 +636,8 @@ class ParsedRtcEventLogNew {
const std::vector<LoggedStopEvent>& stop_log_events() const {
return stop_log_events_;
}
const std::map<uint32_t, std::vector<int64_t>>& audio_playout_events() const {
const std::map<uint32_t, std::vector<LoggedAudioPlayoutEvent>>&
audio_playout_events() const {
return audio_playout_events_;
}
const std::vector<LoggedAudioNetworkAdaptationEvent>&
@ -874,8 +875,8 @@ class ParsedRtcEventLogNew {
std::vector<LoggedStartEvent> start_log_events_;
std::vector<LoggedStopEvent> stop_log_events_;
// Maps an SSRC to the timestamps of parsed audio playout events.
std::map<uint32_t, std::vector<int64_t>> audio_playout_events_;
std::map<uint32_t, std::vector<LoggedAudioPlayoutEvent>>
audio_playout_events_;
std::vector<LoggedAudioNetworkAdaptationEvent>
audio_network_adaptation_events_;