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

Unified Diff: webrtc/tools/event_log_visualizer/analyzer.cc

Issue 2832773002: Use multimap to handle packets logged at the same time in the event log analyzer. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/tools/event_log_visualizer/analyzer.cc
diff --git a/webrtc/tools/event_log_visualizer/analyzer.cc b/webrtc/tools/event_log_visualizer/analyzer.cc
index 0d2483e24dcd082013037d3724774bb4c20c9670..1405908f8f1001f54900f4fcaf52515541370276 100644
--- a/webrtc/tools/event_log_visualizer/analyzer.cc
+++ b/webrtc/tools/event_log_visualizer/analyzer.cc
@@ -1013,8 +1013,8 @@ void EventLogAnalyzer::CreateStreamBitrateGraph(
}
void EventLogAnalyzer::CreateBweSimulationGraph(Plot* plot) {
- std::map<uint64_t, const LoggedRtpPacket*> outgoing_rtp;
- std::map<uint64_t, const LoggedRtcpPacket*> incoming_rtcp;
+ std::multimap<uint64_t, const LoggedRtpPacket*> outgoing_rtp;
+ std::multimap<uint64_t, const LoggedRtcpPacket*> incoming_rtcp;
for (const auto& kv : rtp_packets_) {
if (kv.first.GetDirection() == PacketDirection::kOutgoingPacket) {
@@ -1135,8 +1135,8 @@ void EventLogAnalyzer::CreateBweSimulationGraph(Plot* plot) {
}
void EventLogAnalyzer::CreateNetworkDelayFeedbackGraph(Plot* plot) {
- std::map<uint64_t, const LoggedRtpPacket*> outgoing_rtp;
- std::map<uint64_t, const LoggedRtcpPacket*> incoming_rtcp;
+ std::multimap<uint64_t, const LoggedRtpPacket*> outgoing_rtp;
+ std::multimap<uint64_t, const LoggedRtcpPacket*> incoming_rtcp;
for (const auto& kv : rtp_packets_) {
if (kv.first.GetDirection() == PacketDirection::kOutgoingPacket) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698