Skip to content

Commit

Permalink
Print timestamp-to-UTC map when event_log starts.
Browse files Browse the repository at this point in the history
Bug: None
Change-Id: I9ba392e3ace79b5dbc7342200565004ea5cd844e
Reviewed-on: https://webrtc-review.googlesource.com/93300
Reviewed-by: Minyue Li <[email protected]>
Commit-Queue: Björn Terelius <[email protected]>
Cr-Commit-Position: refs/heads/master@{#24258}
  • Loading branch information
Bjorn Terelius authored and Commit Bot committed Aug 10, 2018
1 parent d3b62cf commit d8be107
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions logging/rtc_event_log/rtc_event_log_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8be107

Please sign in to comment.