Reland "Encode RTC event logs in new format."

This is a reland of ece3c228a2cbd1c1b05eee3a7f55dbb6f020acbc

Original change's description:
> Encode RTC event logs in new format.
> 
> This CL adds the encoder and wires it up to the event log.
> Parser and unit tests are uploaded in a separate CL.
> 
> Bug: webrtc:8111
> Change-Id: I6470003e55c2c4006cd8349a2c4bdc3f9491d869
> Reviewed-on: https://webrtc-review.googlesource.com/c/106708
> Commit-Queue: Björn Terelius <terelius@webrtc.org>
> Reviewed-by: Elad Alon <eladalon@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#25333}

Bug: webrtc:8111
Change-Id: I22eeca36d6b1f7cfa1ac65347571ebe33cecc1fc
Reviewed-on: https://webrtc-review.googlesource.com/c/108082
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25382}
This commit is contained in:
Bjorn Terelius
2018-10-24 13:51:56 +02:00
committed by Commit Bot
parent a5d543ce21
commit c35096d975
8 changed files with 1044 additions and 41 deletions

View File

@ -28,10 +28,9 @@ class RtcEventLog {
enum : size_t { kUnlimitedOutput = 0 };
enum : int64_t { kImmediateOutput = 0 };
// TODO(eladalon): Two stages are upcoming.
// 1. Extend this to actually support the new encoding.
// 2. Get rid of the legacy encoding, allowing us to get rid of this enum.
enum class EncodingType { Legacy };
// TODO(eladalon): Get rid of the legacy encoding and this enum once all
// clients have migrated to the new format.
enum class EncodingType { Legacy, NewFormat };
virtual ~RtcEventLog() {}