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

Issue 183973021: Add metrics to track the duration of tracks received over a PeerConnection. (Closed)

Created:
6 years, 9 months ago by Jói
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jar (doing other things), fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, asvitkine+watch_chromium.org, wjia+watch_chromium.org
Visibility:
Public.

Description

Add metrics to track the duration of tracks received over a PeerConnection. NOTRY=true TBR=jochen@chromium.org BUG=348616 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256780

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Patch Set 3 : Now logging in browser process. #

Total comments: 17

Patch Set 4 : Address review comments. #

Total comments: 8

Patch Set 5 : Lower similarity, fix .gypi file. #

Patch Set 6 : Use pointer value as ID. #

Total comments: 1

Patch Set 7 : Only send messages if RenderThreadImpl::current() is available. #

Patch Set 8 : Fixes based on more manual testing. #

Patch Set 9 : No need to subscribe to notifications; BrowserMessageFilter is for one particular render process. #

Patch Set 10 : Merge to LKGR. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -2 lines) Patch
A content/browser/renderer_host/media/media_stream_track_metrics_host.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
A content/browser/renderer_host/media/media_stream_track_metrics_host.cc View 1 2 3 4 5 6 7 8 1 chunk +79 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/content_message_generator.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A content/common/media/media_stream_track_metrics_host_messages.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/remote_media_stream_impl.cc View 1 2 3 4 5 6 7 5 chunks +54 lines, -1 line 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Jói
Hi Per and Shijing, Could you review and see what you think before I send ...
6 years, 9 months ago (2014-03-04 17:26:15 UTC) #1
Ami GONE FROM CHROMIUM
drive-by https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc#newcode103 content/renderer/media/remote_media_stream_impl.cc:103: UMA_HISTOGRAM_CUSTOM_TIMES(histogram_name, This is a bug - the name ...
6 years, 9 months ago (2014-03-05 08:44:27 UTC) #2
Jói
> This is a bug - the name parameter to UMA macros must be a ...
6 years, 9 months ago (2014-03-05 08:57:35 UTC) #3
perkj_chrome
This will track the lifetime from creation to maybe the end of the track. But ...
6 years, 9 months ago (2014-03-05 09:39:17 UTC) #4
Jói
I don't think there is anything reliable we can do on the renderer side to ...
6 years, 9 months ago (2014-03-05 10:09:26 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc#newcode103 content/renderer/media/remote_media_stream_impl.cc:103: UMA_HISTOGRAM_CUSTOM_TIMES(histogram_name, On 2014/03/05 08:44:27, Ami Fischman wrote: > This ...
6 years, 9 months ago (2014-03-05 14:23:37 UTC) #6
Jói
OK, thanks Alexei. Could I do something like define my own local macro (UMA_HISTOGRAM_TIMES_16H) and ...
6 years, 9 months ago (2014-03-05 14:31:49 UTC) #7
Alexei Svitkine (slow)
That SGTM. On Wed, Mar 5, 2014 at 9:31 AM, Jói Sigurðsson <joi@chromium.org> wrote: > ...
6 years, 9 months ago (2014-03-05 15:37:34 UTC) #8
no longer working on chromium
https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc File content/renderer/media/remote_media_stream_impl.cc (right): https://codereview.chromium.org/183973021/diff/1/content/renderer/media/remote_media_stream_impl.cc#newcode130 content/renderer/media/remote_media_stream_impl.cc:130: webkit_track_.source().setReadyState( Joi, I am not sure, but if you ...
6 years, 9 months ago (2014-03-05 20:54:09 UTC) #9
Jói
Per, could you take a look at the new approach of logging stuff in the ...
6 years, 9 months ago (2014-03-10 19:21:39 UTC) #10
perkj_chrome
https://codereview.chromium.org/183973021/diff/40001/content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc File content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc (right): https://codereview.chromium.org/183973021/diff/40001/content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc#newcode62 content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc:62: ReportDuration(it->second.first, it->second.second); nit: can you use temp variables instead ...
6 years, 9 months ago (2014-03-11 08:05:20 UTC) #11
Jói
PTAL https://codereview.chromium.org/183973021/diff/40001/content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc File content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc (right): https://codereview.chromium.org/183973021/diff/40001/content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc#newcode62 content/browser/renderer_host/media/media_track_lifetime_metrics_host.cc:62: ReportDuration(it->second.first, it->second.second); On 2014/03/11 08:05:21, perkj wrote: > ...
6 years, 9 months ago (2014-03-11 17:36:32 UTC) #12
perkj_chrome
https://codereview.chromium.org/183973021/diff/60001/content/browser/renderer_host/media/media_stream_track_metrics_host.h File content/browser/renderer_host/media/media_stream_track_metrics_host.h (right): https://codereview.chromium.org/183973021/diff/60001/content/browser/renderer_host/media/media_stream_track_metrics_host.h#newcode5 content/browser/renderer_host/media/media_stream_track_metrics_host.h:5: #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_TRACK_METRICS_HOST_H_ nit : git mv is the reviewers ...
6 years, 9 months ago (2014-03-12 07:12:39 UTC) #13
Jói
I'm working on a fix to use pointers as IDs, see below. Will ping again ...
6 years, 9 months ago (2014-03-12 08:50:04 UTC) #14
no longer working on chromium
I am going to defer the review to Per :)
6 years, 9 months ago (2014-03-12 08:54:22 UTC) #15
Jói
PTAL, pointer values now used as IDs.
6 years, 9 months ago (2014-03-12 09:18:05 UTC) #16
perkj_chrome
looks good to me if you take care about the comment below. I think you ...
6 years, 9 months ago (2014-03-12 10:21:34 UTC) #17
no longer working on chromium
On 2014/03/12 10:21:34, perkj wrote: > looks good to me if you take care about ...
6 years, 9 months ago (2014-03-12 13:34:05 UTC) #18
Jói
Thanks guys. There is already a DCHECK(is_remote) in the OnAddTrack implementation. Once I add sent ...
6 years, 9 months ago (2014-03-12 14:25:34 UTC) #19
Alexei Svitkine (slow)
histograms lgtm
6 years, 9 months ago (2014-03-12 14:36:47 UTC) #20
Jói
Per, I made a small change to only send IPC messages if RenderThreadImpl::current() is non-NULL, ...
6 years, 9 months ago (2014-03-12 14:56:00 UTC) #21
Jói
I made some further changes after manual testing showed me a couple of edge cases. ...
6 years, 9 months ago (2014-03-12 17:04:22 UTC) #22
Jói
Per, hold that review until I ping the thread again. Looks like there are some ...
6 years, 9 months ago (2014-03-12 17:11:38 UTC) #23
Jói
OK, ready for a look now. On Wed, Mar 12, 2014 at 5:10 PM, Jói ...
6 years, 9 months ago (2014-03-12 17:33:46 UTC) #24
Jói
+jschuh for IPC security review: content/common/media/media_stream_track_metrics_host_messages.h and ipc/ipc_message_start.h Cheers, Jói
6 years, 9 months ago (2014-03-12 17:35:26 UTC) #25
jschuh
lgtm on ipc security. (note to security: pod pairs in a map with insertion and ...
6 years, 9 months ago (2014-03-12 18:51:16 UTC) #26
perkj_chrome
lgtm
6 years, 9 months ago (2014-03-12 19:27:00 UTC) #27
Jói
The CQ bit was checked by joi@chromium.org
6 years, 9 months ago (2014-03-12 19:41:52 UTC) #28
Jói
The CQ bit was unchecked by joi@chromium.org
6 years, 9 months ago (2014-03-12 19:42:36 UTC) #29
Jói
TBR=jochen@chromium.org for a trivial addition to RenderProcessHostImpl (one more BrowserMessageFilter).
6 years, 9 months ago (2014-03-12 19:46:49 UTC) #30
Jói
The CQ bit was checked by joi@chromium.org
6 years, 9 months ago (2014-03-12 19:48:19 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/183973021/180001
6 years, 9 months ago (2014-03-12 19:54:38 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 21:49:49 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg
6 years, 9 months ago (2014-03-12 21:49:50 UTC) #34
Jói
The CQ bit was checked by joi@chromium.org
6 years, 9 months ago (2014-03-12 21:57:22 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/183973021/180001
6 years, 9 months ago (2014-03-12 21:58:33 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 04:35:18 UTC) #37
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 9 months ago (2014-03-13 04:35:20 UTC) #38
Jói
The CQ bit was checked by joi@chromium.org
6 years, 9 months ago (2014-03-13 09:53:46 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/183973021/180001
6 years, 9 months ago (2014-03-13 09:54:11 UTC) #40
Jói
Adding NOTRY=true as the errors seem to be the "max command line length" compile errors ...
6 years, 9 months ago (2014-03-13 09:54:26 UTC) #41
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 10:05:07 UTC) #42
Message was sent while issue was closed.
Change committed as 256780

Powered by Google App Engine
This is Rietveld 408576698