From d8be107c8b2e24b9648fb9c8d3243d495d218c53 Mon Sep 17 00:00:00 2001 From: Bjorn Terelius Date: Thu, 9 Aug 2018 14:30:29 +0200 Subject: [PATCH] Print timestamp-to-UTC map when event_log starts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: None Change-Id: I9ba392e3ace79b5dbc7342200565004ea5cd844e Reviewed-on: https://webrtc-review.googlesource.com/93300 Reviewed-by: Minyue Li Commit-Queue: Björn Terelius Cr-Commit-Position: refs/heads/master@{#24258} --- logging/rtc_event_log/rtc_event_log_impl.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/logging/rtc_event_log/rtc_event_log_impl.cc b/logging/rtc_event_log/rtc_event_log_impl.cc index b56a5cfaef..554a0283fd 100644 --- a/logging/rtc_event_log/rtc_event_log_impl.cc +++ b/logging/rtc_event_log/rtc_event_log_impl.cc @@ -168,9 +168,12 @@ bool RtcEventLogImpl::StartLogging(std::unique_ptr 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 output) {