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

Issue 69603002: Incorporating logging into Cast (Closed)

Created:
7 years, 1 month ago by mikhal
Modified:
7 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Incorporating logging into Cast: 1. Adding logging to CastEnvironment. 2. Actually triggering logging within the cast library. 3. Adding thread checks. 4. Removing trace calls outside of the logging class. Open issues: 1.Use of rtp_timestamp and frame id is not consistent. In addition, the AudioBus does not include these values. 2. There is a pending cl to switch frame_id to int. This cl does not include that. 3. There are a few more places to add logging. As this cl is already big enough, all of the above will come in a follow-up cl. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236034 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236118

Patch Set 1 #

Patch Set 2 : clean up #

Total comments: 28

Patch Set 3 : Review feedback+ removing old trace calls #

Patch Set 4 : Fixing errors #

Total comments: 1

Patch Set 5 : Added a TODO #

Patch Set 6 : Adding CastConfigLogging #

Patch Set 7 : Upload session delegate with new api #

Patch Set 8 : moving logging.gyp -> cast.gyp #

Patch Set 9 : match comment to code #

Patch Set 10 : merge TOT #

Patch Set 11 : merge TOT #

Patch Set 12 : fixing errors #

Patch Set 13 : yet another rebase #

Patch Set 14 : Adding scoped_ptr include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -200 lines) Patch
M chrome/renderer/media/cast_session_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -1 line 0 comments Download
M media/base/audio_bus.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M media/cast/audio_receiver/audio_receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -1 line 0 comments Download
M media/cast/audio_receiver/audio_receiver_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/audio_sender/audio_encoder_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/audio_sender/audio_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M media/cast/audio_sender/audio_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/cast.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -1 line 0 comments Download
M media/cast/cast_defines.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
M media/cast/cast_environment.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +11 lines, -2 lines 0 comments Download
M media/cast/cast_environment.cc View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M media/cast/cast_sender_impl.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
D media/cast/logging/logging.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -30 lines 0 comments Download
M media/cast/logging/logging_defines.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +21 lines, -4 lines 0 comments Download
M media/cast/logging/logging_defines.cc View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -4 lines 0 comments Download
M media/cast/logging/logging_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -8 lines 0 comments Download
M media/cast/logging/logging_impl.cc View 1 2 3 4 5 6 7 8 9 10 chunks +35 lines, -25 lines 0 comments Download
M media/cast/logging/logging_internal.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M media/cast/logging/logging_raw.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M media/cast/logging/logging_raw.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -2 lines 0 comments Download
M media/cast/logging/logging_stats.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -5 lines 0 comments Download
M media/cast/logging/logging_stats.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M media/cast/pacing/paced_sender_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/rtcp/rtcp.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -2 lines 0 comments Download
M media/cast/rtcp/rtcp.cc View 1 2 3 4 5 6 7 8 9 10 11 12 12 chunks +23 lines, -13 lines 0 comments Download
M media/cast/rtcp/rtcp_receiver.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M media/cast/rtcp/rtcp_receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -11 lines 0 comments Download
M media/cast/rtcp/rtcp_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +14 lines, -2 lines 0 comments Download
M media/cast/rtcp/rtcp_sender.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M media/cast/rtcp/rtcp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +7 lines, -14 lines 0 comments Download
M media/cast/rtcp/rtcp_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +14 lines, -1 line 0 comments Download
M media/cast/rtcp/rtcp_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 18 chunks +32 lines, -22 lines 0 comments Download
M media/cast/rtcp/test_rtcp_packet_builder.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -1 line 0 comments Download
M media/cast/rtcp/test_rtcp_packet_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -4 lines 0 comments Download
M media/cast/rtp_sender/rtp_sender.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M media/cast/rtp_sender/rtp_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +53 lines, -13 lines 0 comments Download
M media/cast/test/encode_decode_test.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/cast/test/end2end_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/test/receiver.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M media/cast/test/sender.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M media/cast/video_receiver/codecs/vp8/vp8_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M media/cast/video_receiver/video_decoder_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/video_receiver/video_receiver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -1 line 0 comments Download
M media/cast/video_receiver/video_receiver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/video_sender/video_encoder.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M media/cast/video_sender/video_encoder_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M media/cast/video_sender/video_sender.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +8 lines, -2 lines 0 comments Download
M media/cast/video_sender/video_sender_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
mikhal
Please review, -Mikhal
7 years, 1 month ago (2013-11-12 18:12:34 UTC) #1
Alpha Left Google
Some minor suggestions. https://codereview.chromium.org/69603002/diff/200001/media/cast/cast_environment.cc File media/cast/cast_environment.cc (right): https://codereview.chromium.org/69603002/diff/200001/media/cast/cast_environment.cc#newcode30 media/cast/cast_environment.cc:30: logging_(new LoggingImpl(clock, main_thread_proxy, Use a separate ...
7 years, 1 month ago (2013-11-14 00:29:24 UTC) #2
mikhal
PTAL https://chromiumcodereview.appspot.com/69603002/diff/200001/media/cast/cast_environment.cc File media/cast/cast_environment.cc (right): https://chromiumcodereview.appspot.com/69603002/diff/200001/media/cast/cast_environment.cc#newcode30 media/cast/cast_environment.cc:30: logging_(new LoggingImpl(clock, main_thread_proxy, Don't see why. On 2013/11/14 ...
7 years, 1 month ago (2013-11-14 17:42:30 UTC) #3
Alpha Left Google
> https://chromiumcodereview.appspot.com/69603002/diff/200001/media/cast/cast_environment.cc#newcode30 > media/cast/cast_environment.cc:30: logging_(new LoggingImpl(clock, > main_thread_proxy, > Don't see why. This patch overall ...
7 years, 1 month ago (2013-11-14 19:54:41 UTC) #4
Alpha Left Google
https://codereview.chromium.org/69603002/diff/370002/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc File media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc (right): https://codereview.chromium.org/69603002/diff/370002/media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc#newcode82 media/cast/rtp_sender/rtp_packetizer/rtp_packetizer.cc:82: std::vector<uint8> data) { I just noticed that this code ...
7 years, 1 month ago (2013-11-14 19:54:56 UTC) #5
mikhal
PTAL
7 years, 1 month ago (2013-11-14 20:13:22 UTC) #6
mikhal
PTAL
7 years, 1 month ago (2013-11-15 00:41:22 UTC) #7
Alpha Left Google
On 2013/11/15 00:41:22, mikhal wrote: > PTAL Okay. LGTM.
7 years, 1 month ago (2013-11-15 00:51:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/960001
7 years, 1 month ago (2013-11-15 04:12:01 UTC) #9
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=36494
7 years, 1 month ago (2013-11-15 05:33:44 UTC) #10
mikhal
+scherkus for cast_message_delegate update.
7 years, 1 month ago (2013-11-15 15:53:20 UTC) #11
scherkus (not reviewing)
lgtm
7 years, 1 month ago (2013-11-15 21:20:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/1190002
7 years, 1 month ago (2013-11-15 22:55:16 UTC) #13
commit-bot: I haz the power
Failed to apply patch for media/cast/logging/logging_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-15 22:55:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/1370002
7 years, 1 month ago (2013-11-15 23:24:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/1370002
7 years, 1 month ago (2013-11-16 00:48:18 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=54579
7 years, 1 month ago (2013-11-16 02:57:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/1370002
7 years, 1 month ago (2013-11-16 17:42:07 UTC) #18
commit-bot: I haz the power
Failed to apply patch for media/cast/rtcp/rtcp.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-16 17:42:29 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/2000001
7 years, 1 month ago (2013-11-18 17:14:40 UTC) #20
commit-bot: I haz the power
Retried try job too often on android_dbg for step(s) slave_steps http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_dbg&number=124069
7 years, 1 month ago (2013-11-18 18:08:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/2240001
7 years, 1 month ago (2013-11-18 19:36:11 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, sync_integration_tests, unit_tests ...
7 years, 1 month ago (2013-11-18 21:52:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/2240001
7 years, 1 month ago (2013-11-18 23:19:36 UTC) #24
commit-bot: I haz the power
Failed to apply patch for media/cast/audio_sender/audio_sender.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-18 23:19:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/2450001
7 years, 1 month ago (2013-11-19 17:03:43 UTC) #26
commit-bot: I haz the power
Change committed as 236034
7 years, 1 month ago (2013-11-19 19:52:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhal@google.com/69603002/2860001
7 years, 1 month ago (2013-11-19 21:40:45 UTC) #28
commit-bot: I haz the power
7 years, 1 month ago (2013-11-20 03:24:06 UTC) #29
Message was sent while issue was closed.
Change committed as 236118

Powered by Google App Engine
This is Rietveld 408576698