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
@ -307,13 +307,13 @@ void PlotCollection::PrintPythonCode(bool shared_xaxis) const {
|
||||
void PlotCollection::ExportProtobuf(
|
||||
webrtc::analytics::ChartCollection* collection) const {
|
||||
for (const auto& plot : plots_) {
|
||||
// TODO(terelius): Ensure that there is no way to insert plots other than
|
||||
// ProtobufPlots in a ProtobufPlotCollection. Needed to safely static_cast
|
||||
// here.
|
||||
webrtc::analytics::Chart* protobuf_representation =
|
||||
collection->add_charts();
|
||||
plot->ExportProtobuf(protobuf_representation);
|
||||
}
|
||||
if (calltime_to_utc_ms_) {
|
||||
collection->set_calltime_to_utc_ms(*calltime_to_utc_ms_);
|
||||
}
|
||||
}
|
||||
|
||||
Plot* PlotCollection::AppendNewPlot() {
|
||||
|
Reference in New Issue
Block a user