Refactor AnalyzerConfig to use Timestamps instead of microseconds.
Add optional offset-to-UTC parameter to output. This allows aligning the x-axis in the generated charts to other UTC-based logs. Bug: b/215140373 Change-Id: I65bcd295718acbb8c94e363907c1abc458067bfd Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/250203 Reviewed-by: Kristoffer Erlandsson <kerl@google.com> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35992}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
97f8a5f7dd
commit
43fb16921b
@ -261,8 +261,12 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
webrtc::AnalyzerConfig config;
|
||||
config.window_duration_ = 250000;
|
||||
config.step_ = 10000;
|
||||
config.window_duration_ = webrtc::TimeDelta::Millis(250);
|
||||
config.step_ = webrtc::TimeDelta::Millis(10);
|
||||
if (!parsed_log.start_log_events().empty()) {
|
||||
config.rtc_to_utc_offset_ = parsed_log.start_log_events()[0].utc_time() -
|
||||
parsed_log.start_log_events()[0].log_time();
|
||||
}
|
||||
config.normalize_time_ = absl::GetFlag(FLAGS_normalize_time);
|
||||
config.begin_time_ = parsed_log.first_timestamp();
|
||||
config.end_time_ = parsed_log.last_timestamp();
|
||||
@ -275,6 +279,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
webrtc::EventLogAnalyzer analyzer(parsed_log, config);
|
||||
webrtc::PlotCollection collection;
|
||||
collection.SetCallTimeToUtcOffsetMs(config.CallTimeToUtcOffsetMs());
|
||||
|
||||
PlotMap plots;
|
||||
plots.RegisterPlot("incoming_packet_sizes", [&](Plot* plot) {
|
||||
|
Reference in New Issue
Block a user