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

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

Issue 2653343004: Add new step graph type to event log visualization tool (Closed)
Patch Set: Created 3 years, 11 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 | webrtc/tools/event_log_visualizer/chart.proto » ('j') | 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 89e516a950b59073fa92846780b3cf39c27d6460..f0a5d229ae99699c63a1a66a8c02f9025b1949d3 100644
--- a/webrtc/tools/event_log_visualizer/analyzer.cc
+++ b/webrtc/tools/event_log_visualizer/analyzer.cc
@@ -553,12 +553,11 @@ void EventLogAnalyzer::CreateAccumulatedPacketsTimeSeries(
TimeSeries time_series;
time_series.label = label_prefix + " " + GetStreamName(stream_id);
- time_series.style = LINE_GRAPH;
+ time_series.style = LINE_STEP_GRAPH;
for (size_t i = 0; i < packet_stream.size(); i++) {
float x = static_cast<float>(packet_stream[i].timestamp - begin_time_) /
1000000;
- time_series.points.emplace_back(x, i);
time_series.points.emplace_back(x, i + 1);
}
@@ -877,9 +876,8 @@ void EventLogAnalyzer::CreateTotalBitrateGraph(
plot->series_list_.back().points.emplace_back(x, y);
}
plot->series_list_.back().label = "Loss-based estimate";
- plot->series_list_.back().style = LINE_GRAPH;
+ plot->series_list_.back().style = LINE_STEP_GRAPH;
}
- plot->series_list_.back().style = LINE_GRAPH;
plot->SetXAxis(0, call_duration_s_, "Time (s)", kLeftMargin, kRightMargin);
plot->SetSuggestedYAxis(0, 1, "Bitrate (kbps)", kBottomMargin, kTopMargin);
if (desired_direction == webrtc::PacketDirection::kIncomingPacket) {
« no previous file with comments | « no previous file | webrtc/tools/event_log_visualizer/chart.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698