Add new event type to RtcEventLog

Alr state is now logged by the pacer. To avoid confusion,
loopback tools will now create two separate rtc event
logs for sender and receiver calls.

Bug: webrtc:8287, webrtc:8588
Change-Id: Ib3e47d109c3a65a7ed069b9a613e6a08fe6a2f30
Reviewed-on: https://webrtc-review.googlesource.com/26880
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21084}
This commit is contained in:
Ilya Nikolaevskiy
2017-12-05 13:19:45 +01:00
committed by Commit Bot
parent 095c25d05a
commit a4259f6b66
22 changed files with 236 additions and 26 deletions

View File

@ -65,6 +65,11 @@ class ParsedRtcEventLog {
BandwidthUsage detector_state;
};
struct AlrStateEvent {
uint64_t timestamp;
bool in_alr;
};
enum EventType {
UNKNOWN_EVENT = 0,
LOG_START = 1,
@ -80,7 +85,8 @@ class ParsedRtcEventLog {
AUDIO_SENDER_CONFIG_EVENT = 11,
AUDIO_NETWORK_ADAPTATION_EVENT = 16,
BWE_PROBE_CLUSTER_CREATED_EVENT = 17,
BWE_PROBE_RESULT_EVENT = 18
BWE_PROBE_RESULT_EVENT = 18,
ALR_STATE_EVENT = 19
};
enum class MediaType { ANY, AUDIO, VIDEO, DATA };
@ -180,6 +186,8 @@ class ParsedRtcEventLog {
MediaType GetMediaType(uint32_t ssrc, PacketDirection direction) const;
AlrStateEvent GetAlrState(size_t index) const;
private:
rtclog::StreamConfig GetVideoReceiveConfig(const rtclog::Event& event) const;
std::vector<rtclog::StreamConfig> GetVideoSendConfig(