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

Issue 236123003: Cast: Provide more meaningful stats. (Closed)

Created:
6 years, 8 months ago by imcheng
Modified:
6 years, 7 months ago
Reviewers:
hubbe, miu
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cast: Provide more meaningful stats. - Instead of giving generic stats for each event type, StatsEventSubsriber will now provide more specific stats. It also provide new kinds of stats (packet loss %, latency) - stats_util to convert output of StatsEventSubscriber to a base::DictionaryValue is moved into the subscriber implementation. - Introduced ReceiverTimeOffsetEstimator to estimate receiver offset based on raw events received. It is used by StatsEventSubscriber to determine stats such as latency. The estimator itself is implemented as a RawEventSubscriber and is shared between the audio and video StatsEventSubscriber objects. - Move stats related structs from logging_defines.{cc,h} into stats_event_subscriber.{cc,h} BUG=353019 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266574

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Total comments: 18

Patch Set 4 : Rebase #

Patch Set 5 : Addressed comments #

Patch Set 6 : minor fix #

Total comments: 44

Patch Set 7 : Addressed miu's comments #

Total comments: 6

Patch Set 8 : Addressed miu's comments #

Total comments: 4

Patch Set 9 : rebase #

Patch Set 10 : rm generic event usage #

Patch Set 11 : fix bug #

Patch Set 12 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1643 lines, -348 lines) Patch
M chrome/renderer/media/cast_session_delegate.h View 1 2 3 4 5 6 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +27 lines, -92 lines 0 comments Download
M media/cast/cast.gyp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M media/cast/cast_testing.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M media/cast/logging/logging_defines.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -27 lines 0 comments Download
M media/cast/logging/logging_defines.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -10 lines 0 comments Download
A media/cast/logging/raw_event_subscriber_bundle.h View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 0 comments Download
A media/cast/logging/raw_event_subscriber_bundle.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +99 lines, -0 lines 0 comments Download
A media/cast/logging/receiver_time_offset_estimator.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A media/cast/logging/receiver_time_offset_estimator_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +64 lines, -0 lines 0 comments Download
A media/cast/logging/receiver_time_offset_estimator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +125 lines, -0 lines 0 comments Download
A media/cast/logging/receiver_time_offset_estimator_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +234 lines, -0 lines 0 comments Download
M media/cast/logging/stats_event_subscriber.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +137 lines, -8 lines 0 comments Download
M media/cast/logging/stats_event_subscriber.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +371 lines, -26 lines 0 comments Download
M media/cast/logging/stats_event_subscriber_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +315 lines, -74 lines 0 comments Download
D media/cast/logging/stats_util.h View 1 chunk +0 lines, -27 lines 0 comments Download
D media/cast/logging/stats_util.cc View 1 chunk +0 lines, -72 lines 0 comments Download
A media/cast/test/fake_receiver_time_offset_estimator.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 0 comments Download
A media/cast/test/fake_receiver_time_offset_estimator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +37 lines, -0 lines 0 comments Download
M media/cast/test/sender.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +59 lines, -3 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
imcheng
Yuri / Hubbe, please review. This is a large patch but a lot of it ...
6 years, 8 months ago (2014-04-12 00:28:21 UTC) #1
hubbe
A few initial comments.. https://codereview.chromium.org/236123003/diff/20001/chrome/renderer/media/cast_session_delegate.h File chrome/renderer/media/cast_session_delegate.h (right): https://codereview.chromium.org/236123003/diff/20001/chrome/renderer/media/cast_session_delegate.h#newcode113 chrome/renderer/media/cast_session_delegate.h:113: scoped_ptr<media::cast::ReceiverTimeOffsetEstimator> Why a scoped_ptr? why ...
6 years, 8 months ago (2014-04-15 00:23:22 UTC) #2
imcheng
https://codereview.chromium.org/236123003/diff/20001/chrome/renderer/media/cast_session_delegate.h File chrome/renderer/media/cast_session_delegate.h (right): https://codereview.chromium.org/236123003/diff/20001/chrome/renderer/media/cast_session_delegate.h#newcode113 chrome/renderer/media/cast_session_delegate.h:113: scoped_ptr<media::cast::ReceiverTimeOffsetEstimator> On 2014/04/15 00:23:22, hubbe wrote: > Why a ...
6 years, 8 months ago (2014-04-15 01:18:35 UTC) #3
imcheng
Ping.
6 years, 8 months ago (2014-04-15 20:51:03 UTC) #4
miu
Some intital comments. I'll sit down with this tonight and review the rest. https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc File ...
6 years, 8 months ago (2014-04-15 21:29:42 UTC) #5
miu
Still haven't reviewed everything, but here are some more comments: https://codereview.chromium.org/236123003/diff/40001/media/cast/logging/receiver_time_offset_estimator.h File media/cast/logging/receiver_time_offset_estimator.h (right): https://codereview.chromium.org/236123003/diff/40001/media/cast/logging/receiver_time_offset_estimator.h#newcode18 ...
6 years, 8 months ago (2014-04-17 02:14:14 UTC) #6
imcheng
Thank you both for the review. https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc#newcode25 media/cast/logging/stats_event_subscriber.cc:25: CastLoggingEvent GetCapturedEvent(EventMediaType media_type) ...
6 years, 8 months ago (2014-04-17 19:19:05 UTC) #7
miu
https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc#newcode25 media/cast/logging/stats_event_subscriber.cc:25: CastLoggingEvent GetCapturedEvent(EventMediaType media_type) { On 2014/04/17 19:19:06, imcheng1 wrote: ...
6 years, 8 months ago (2014-04-18 00:02:02 UTC) #8
imcheng
https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/20001/media/cast/logging/stats_event_subscriber.cc#newcode25 media/cast/logging/stats_event_subscriber.cc:25: CastLoggingEvent GetCapturedEvent(EventMediaType media_type) { Yes, it is unfortunate that ...
6 years, 8 months ago (2014-04-18 18:20:26 UTC) #9
imcheng
Ping.
6 years, 8 months ago (2014-04-22 15:18:09 UTC) #10
imcheng
Ping.
6 years, 8 months ago (2014-04-22 15:18:13 UTC) #11
imcheng
Ping.
6 years, 8 months ago (2014-04-22 15:18:13 UTC) #12
imcheng
Ping.
6 years, 8 months ago (2014-04-22 15:18:13 UTC) #13
imcheng
Oops, sorry for the duplicate pings. Hit the space bar accidentally.
6 years, 8 months ago (2014-04-22 15:19:01 UTC) #14
miu
lgtm https://codereview.chromium.org/236123003/diff/120001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/120001/media/cast/logging/stats_event_subscriber.cc#newcode329 media/cast/logging/stats_event_subscriber.cc:329: if (duration.InMicroseconds() != 0) nit: if (duration > ...
6 years, 8 months ago (2014-04-22 19:38:04 UTC) #15
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 8 months ago (2014-04-22 19:57:20 UTC) #16
imcheng
https://codereview.chromium.org/236123003/diff/120001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/120001/media/cast/logging/stats_event_subscriber.cc#newcode329 media/cast/logging/stats_event_subscriber.cc:329: if (duration.InMicroseconds() != 0) On 2014/04/22 19:38:04, miu wrote: ...
6 years, 8 months ago (2014-04-22 19:57:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/140001
6 years, 8 months ago (2014-04-22 19:58:26 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 20:06:44 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-22 20:06:45 UTC) #20
imcheng
Hubbe, could you please take a look too?
6 years, 8 months ago (2014-04-22 20:52:49 UTC) #21
miu
On 2014/04/22 20:52:49, imcheng1 wrote: > Hubbe, could you please take a look too? imcheng: ...
6 years, 8 months ago (2014-04-23 02:20:18 UTC) #22
hubbe
LGTM + one optional comment and one FYI https://codereview.chromium.org/236123003/diff/140001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/140001/media/cast/logging/stats_event_subscriber.cc#newcode25 media/cast/logging/stats_event_subscriber.cc:25: CastLoggingEvent ...
6 years, 8 months ago (2014-04-24 22:53:54 UTC) #23
imcheng
https://codereview.chromium.org/236123003/diff/140001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/236123003/diff/140001/media/cast/logging/stats_event_subscriber.cc#newcode25 media/cast/logging/stats_event_subscriber.cc:25: CastLoggingEvent GetCapturedEvent(EventMediaType media_type) { On 2014/04/24 22:53:54, hubbe wrote: ...
6 years, 8 months ago (2014-04-25 15:35:43 UTC) #24
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 8 months ago (2014-04-25 15:36:10 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/200001
6 years, 8 months ago (2014-04-25 17:54:35 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-25 23:45:38 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-25 23:45:38 UTC) #28
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 8 months ago (2014-04-26 00:05:13 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/200001
6 years, 8 months ago (2014-04-26 00:07:51 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 00:14:13 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 00:14:14 UTC) #32
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 8 months ago (2014-04-28 00:31:44 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/220001
6 years, 8 months ago (2014-04-28 00:32:32 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-28 01:17:10 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-28 01:17:11 UTC) #36
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 8 months ago (2014-04-28 03:06:10 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/220001
6 years, 8 months ago (2014-04-28 03:06:34 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-28 03:50:30 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-28 03:50:31 UTC) #40
imcheng
The CQ bit was checked by imcheng@chromium.org
6 years, 7 months ago (2014-04-28 14:56:50 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/imcheng@chromium.org/236123003/220001
6 years, 7 months ago (2014-04-28 14:57:28 UTC) #42
commit-bot: I haz the power
6 years, 7 months ago (2014-04-28 15:29:04 UTC) #43
Message was sent while issue was closed.
Change committed as 266574

Powered by Google App Engine
This is Rietveld 408576698