Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 2380683005: Moved RtcEventLog files from call/ to logging/ (new top level dir) (Closed)

Created:
4 years, 2 months ago by skvlad
Modified:
4 years, 2 months ago
CC:
webrtc-reviews_webrtc.org, danilchap, video-team_agora.io, hlundin-webrtc, yujie_mao (webrtc), kwiberg-webrtc, zhuangzesen_agora.io, Andrew MacDonald, zhengzhonghou_agora.io, henrika_webrtc, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, qiang.lu, niklas.enbom, peah-webrtc, minyue-webrtc, perkj_webrtc, mflodman, terelius, ivoc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Moved RtcEventLog files from call/ to logging/ The RtcEventLog headers need to be accessible from any place which needs logging, and the implementation needs access to data structures that are logged. After a discussion in the code review, we all agreed to move the RtcEventLog implementation into its own top level directory - which I called "logging/" in expectation that other types of logging may have similar requirements. The directory contains two main build targets - "rtc_event_log_api", which is just rtc_event_log.h, that has no external dependencies and can be used from anywhere, and "rtc_event_log_impl" which contains the rest of the implementation and has many dependencies (more in the future). The "api" target can be referenced from anywhere, while the "impl" target is only needed at the place of instantiation (currently Call, soon to be moved to PeerConnection by https://codereview.webrtc.org/2353033005/). This change allows using RtcEventLog in the p2p/ directory, so that we can log STUN pings and ICE state transitions. BUG=webrtc:6393 R=kjellander@webrtc.org, kwiberg@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, terelius@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/cc91d284e43e266f97edb999eb2ebfc8a094beac

Patch Set 1 #

Patch Set 2 : Sorted the includes #

Patch Set 3 : Fix fuzzer bot #

Patch Set 4 : Moved to its own top level directory - logging/ #

Patch Set 5 : Updated GYP files #

Patch Set 6 : Updated GYP files #

Total comments: 13

Patch Set 7 : Code review feedback #

Patch Set 8 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -3428 lines) Patch
M webrtc/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +2 lines, -31 lines 0 comments Download
M webrtc/audio/webrtc_audio.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/call/BUILD.gn View 1 2 3 4 chunks +1 line, -48 lines 0 comments Download
M webrtc/call/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/call/call.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/call/mock/mock_rtc_event_log.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
D webrtc/call/ringbuffer.h View 1 chunk +0 lines, -100 lines 0 comments Download
D webrtc/call/ringbuffer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -170 lines 0 comments Download
D webrtc/call/rtc_event_log.h View 1 chunk +0 lines, -142 lines 0 comments Download
D webrtc/call/rtc_event_log.cc View 1 chunk +0 lines, -445 lines 0 comments Download
D webrtc/call/rtc_event_log.proto View 1 chunk +0 lines, -242 lines 0 comments Download
D webrtc/call/rtc_event_log2rtp_dump.cc View 1 chunk +0 lines, -186 lines 0 comments Download
D webrtc/call/rtc_event_log_helper_thread.h View 1 chunk +0 lines, -132 lines 0 comments Download
D webrtc/call/rtc_event_log_helper_thread.cc View 1 chunk +0 lines, -320 lines 0 comments Download
D webrtc/call/rtc_event_log_parser.h View 1 chunk +0 lines, -123 lines 0 comments Download
D webrtc/call/rtc_event_log_parser.cc View 1 chunk +0 lines, -416 lines 0 comments Download
D webrtc/call/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -460 lines 0 comments Download
D webrtc/call/rtc_event_log_unittest_helper.h View 1 chunk +0 lines, -58 lines 0 comments Download
D webrtc/call/rtc_event_log_unittest_helper.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -405 lines 0 comments Download
M webrtc/call/webrtc_call.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/logging/BUILD.gn View 1 2 3 4 chunks +45 lines, -50 lines 0 comments Download
A webrtc/logging/OWNERS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + webrtc/logging/rtc_event_log/DEPS View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/logging/rtc_event_log/ringbuffer.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/logging/rtc_event_log/ringbuffer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log.cc View 1 2 3 4 chunks +5 lines, -7 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log.proto View 1 2 3 13 chunks +0 lines, -13 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log2rtp_dump.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h View 1 2 3 4 chunks +6 lines, -6 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_parser.h View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_parser.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
A + webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_coding/audio_coding.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A webrtc/modules/audio_coding/neteq/tools/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/neteq/tools/rtc_event_log_source.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/tools/rtc_event_log_source.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/bitrate_controller/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtcp_sender.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_sender.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/test/fuzzers/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M webrtc/test/fuzzers/congestion_controller_feedback_fuzzer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/tools/BUILD.gn View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/tools/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/tools/event_log_visualizer/analyzer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/tools/event_log_visualizer/main.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/tools/tools.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/webrtc_video.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/BUILD.gn View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/standard/codec_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/voice_engine/voice_engine.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/webrtc.gyp View 1 2 3 4 5 5 chunks +20 lines, -12 lines 0 comments Download

Messages

Total messages: 34 (13 generated)
skvlad
Please take a look. This should be just a refactoring.
4 years, 2 months ago (2016-09-29 03:16:18 UTC) #2
stefan-webrtc
Could you explain the thinking behind making RtcEventLog an API? I would have expected it ...
4 years, 2 months ago (2016-09-29 07:10:44 UTC) #3
kjellander_webrtc
On 2016/09/29 07:10:44, stefan-webrtc (holmer) wrote: > Could you explain the thinking behind making RtcEventLog ...
4 years, 2 months ago (2016-09-29 07:22:22 UTC) #4
skvlad
On 2016/09/29 07:22:22, kjellander_webrtc wrote: > On 2016/09/29 07:10:44, stefan-webrtc (holmer) wrote: > > Could ...
4 years, 2 months ago (2016-09-29 07:30:24 UTC) #5
the sun
On 2016/09/29 07:30:24, skvlad wrote: > On 2016/09/29 07:22:22, kjellander_webrtc wrote: > > On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 09:54:21 UTC) #6
stefan-webrtc
+cc terelius
4 years, 2 months ago (2016-09-29 09:58:48 UTC) #7
hlundin-webrtc
+ cc:ivoc
4 years, 2 months ago (2016-09-29 11:42:58 UTC) #9
hlundin-webrtc
4 years, 2 months ago (2016-09-29 11:43:55 UTC) #11
the sun
Oh, and btw, even if RtcEventLog instantiation is moved to peerconnection.cc, the above still is ...
4 years, 2 months ago (2016-09-29 16:08:33 UTC) #12
skvlad
I've moved RtcEventLog into its own top level directory (here called 'logging' as other log ...
4 years, 2 months ago (2016-09-29 20:21:35 UTC) #15
the sun
Nice! Thanks for doing this. Further cleanup could include: - Create an rtc_event_log_test target which ...
4 years, 2 months ago (2016-09-30 09:40:08 UTC) #16
kjellander_webrtc
lgtm with mine and solenberg's comments addressed. Great to see such nice work adapting the ...
4 years, 2 months ago (2016-09-30 10:57:05 UTC) #17
kwiberg-webrtc
https://codereview.webrtc.org/2380683005/diff/100001/webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc File webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc (right): https://codereview.webrtc.org/2380683005/diff/100001/webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc#newcode35 webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc:35: #ifdef WEBRTC_ANDROID_PLATFORM_BUILD On 2016/09/30 09:40:08, the sun wrote: > ...
4 years, 2 months ago (2016-09-30 11:34:58 UTC) #19
skvlad
Thanks for the feedback! I still need an owner of modules/{audio_coding,bitrate_controller,rtp_rtcp} to review this. stefan@, ...
4 years, 2 months ago (2016-09-30 18:50:55 UTC) #20
terelius
lgtm
4 years, 2 months ago (2016-10-03 09:45:15 UTC) #21
stefan-webrtc
Let's give kwiberg a chance to review audio_coding since he's a true OWNER there. lgtm ...
4 years, 2 months ago (2016-10-03 10:47:06 UTC) #22
kwiberg-webrtc
lgtm for audio_coding
4 years, 2 months ago (2016-10-03 11:54:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2380683005/120001
4 years, 2 months ago (2016-10-03 23:12:57 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang_dbg/builds/16706) ios64_gyp_dbg on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 23:14:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2380683005/140001
4 years, 2 months ago (2016-10-04 01:11:32 UTC) #31
skvlad
4 years, 2 months ago (2016-10-04 01:31:38 UTC) #34
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
cc91d284e43e266f97edb999eb2ebfc8a094beac (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698