Print timestamp-to-UTC map when event_log starts.

Bug: None
Change-Id: I9ba392e3ace79b5dbc7342200565004ea5cd844e
Reviewed-on: https://webrtc-review.googlesource.com/93300
Reviewed-by: Minyue Li <minyue@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24258}
This commit is contained in:
Bjorn Terelius
2018-08-09 14:30:29 +02:00
committed by Commit Bot
parent d3b62cfb02
commit d8be107c8b

View File

@ -168,9 +168,12 @@ bool RtcEventLogImpl::StartLogging(std::unique_ptr<RtcEventLogOutput> output,
return false;
}
RTC_LOG(LS_INFO) << "Starting WebRTC event log.";
// TODO(terelius): The mapping between log timestamps and UTC should be stored
// in the event_log START event.
const int64_t timestamp_us = rtc::TimeMicros();
const int64_t utc_time_us = rtc::TimeUTCMicros();
RTC_LOG(LS_INFO) << "Starting WebRTC event log. (Timestamp, UTC) = "
<< "(" << timestamp_us << ", " << utc_time_us << ").";
// Binding to |this| is safe because |this| outlives the |task_queue_|.
auto start = [this, timestamp_us](std::unique_ptr<RtcEventLogOutput> output) {