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

Issue 1181743005: Report video and network stats averaged over 1s, and create corresponding UMA metrics. (Closed)

Created:
5 years, 6 months ago by anandc
Modified:
5 years, 5 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report video and network stats averaged over 1s, and create corresponding UMA metrics. BUG=502061 Committed: https://crrev.com/b877083e221c58a67a9a00e2024050f069948c6d Cr-Commit-Position: refs/heads/master@{#339136}

Patch Set 1 #

Patch Set 2 : Update stats for software-renderer as well. #

Total comments: 6

Patch Set 3 : Create more fine-grained stats. Also capture fps including empty frames. #

Patch Set 4 : Remove unnecessary RunningAverage stats. #

Total comments: 27

Patch Set 5 : Clarify metric names. Better document UMA min-max and boundary settings. #

Total comments: 21

Patch Set 6 : Create separate timers for updating stats for display and for UMA. #

Patch Set 7 : Set time-window for display stats rate-counters to 3. #

Total comments: 8

Patch Set 8 : Declare time-window constants as static. #

Total comments: 34

Patch Set 9 : Collapse UMA and display stats into 1 set of metrics. Remove uploading of latency metrics to UMA because with the current implementation they will be inaccurate. #

Total comments: 6

Patch Set 10 : Add Chromoting UMA metrics to histograms.xml. Reduce # of buckets for bandwidth to 100. #

Total comments: 10

Patch Set 11 : Note frequency at which UMA stats are being updated/logged. #

Total comments: 56

Patch Set 12 : Fix bandwidth and frame-rate being incorrectly updated in software video-renderer. Add sergeyu@ to … #

Total comments: 3

Patch Set 13 : Set bandwidth histogram minimum to 0. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -17 lines) Patch
M remoting/client/chromoting_stats.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +20 lines, -0 lines 0 comments Download
M remoting/client/chromoting_stats.cc View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -11 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +38 lines, -5 lines 0 comments Download
M remoting/client/plugin/pepper_video_renderer_3d.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/client/software_video_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (15 generated)
anandc
Sergey, PTAL. If the metric names are OK, I'll update histograms.xml (https://code.google.com/p/chromium/codesearch#chromium/src/tools/metrics/histograms/histograms.xml) to include the ...
5 years, 6 months ago (2015-06-18 23:14:07 UTC) #3
Wez
The UMA reporting calls are being added in client-side code, which runs in the - ...
5 years, 6 months ago (2015-06-19 16:25:48 UTC) #4
anandc
On 2015/06/19 16:25:48, Wez wrote: > The UMA reporting calls are being added in client-side ...
5 years, 6 months ago (2015-06-19 17:33:15 UTC) #5
Wez
I'm not saying that moving the UMA stats gathering to the web-app is required; IIRC ...
5 years, 6 months ago (2015-06-19 18:46:16 UTC) #6
Sergey Ulanov
https://codereview.chromium.org/1181743005/diff/40001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/40001/remoting/client/chromoting_stats.cc#newcode10 remoting/client/chromoting_stats.cc:10: // Set to 60s, so that we average at ...
5 years, 6 months ago (2015-06-19 23:08:42 UTC) #7
Sergey Ulanov
On 2015/06/19 18:46:16, Wez wrote: > I'm not saying that moving the UMA stats gathering ...
5 years, 6 months ago (2015-06-19 23:09:27 UTC) #8
anandc
Thanks Sergey. PTAL. https://codereview.chromium.org/1181743005/diff/40001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/40001/remoting/client/chromoting_stats.cc#newcode10 remoting/client/chromoting_stats.cc:10: // Set to 60s, so that ...
5 years, 6 months ago (2015-06-20 01:31:32 UTC) #12
anandc
Sergey/Wez, PTAL at patch-set #4. I figured out that there is no reason to have ...
5 years, 6 months ago (2015-06-23 22:49:13 UTC) #13
dahlke1
https://codereview.chromium.org/1181743005/diff/140001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/140001/remoting/client/plugin/chromoting_instance.cc#newcode1082 remoting/client/plugin/chromoting_instance.cc:1082: // For, the latency metrics use a max value ...
5 years, 6 months ago (2015-06-24 23:12:11 UTC) #15
Wez
https://codereview.chromium.org/1181743005/diff/140001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/140001/remoting/client/chromoting_stats.cc#newcode10 remoting/client/chromoting_stats.cc:10: const int kTimeWindow = 3; nit: Rename this to ...
5 years, 5 months ago (2015-06-29 14:56:14 UTC) #16
anandc
Thanks Wez. PTAL at patch-set #5. https://codereview.chromium.org/1181743005/diff/140001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/140001/remoting/client/chromoting_stats.cc#newcode10 remoting/client/chromoting_stats.cc:10: const int kTimeWindow ...
5 years, 5 months ago (2015-06-30 20:17:39 UTC) #18
Sergey Ulanov
https://codereview.chromium.org/1181743005/diff/180001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/180001/remoting/client/chromoting_stats.cc#newcode12 remoting/client/chromoting_stats.cc:12: const int kWebAppStatsTimeWindow = 3; I suggest calling it ...
5 years, 5 months ago (2015-07-06 21:23:12 UTC) #19
anandc
Thanks Sergey. PTAL at patch-set #6. https://codereview.chromium.org/1181743005/diff/180001/remoting/client/chromoting_stats.cc File remoting/client/chromoting_stats.cc (right): https://codereview.chromium.org/1181743005/diff/180001/remoting/client/chromoting_stats.cc#newcode12 remoting/client/chromoting_stats.cc:12: const int kWebAppStatsTimeWindow ...
5 years, 5 months ago (2015-07-07 01:11:43 UTC) #22
anandc
With the display-stats and UMA stats now being updated on different timers, we can set ...
5 years, 5 months ago (2015-07-07 02:23:04 UTC) #23
anandc
On 2015/07/07 02:23:04, anandc wrote: > With the display-stats and UMA stats now being updated ...
5 years, 5 months ago (2015-07-08 02:29:35 UTC) #24
Sergey Ulanov
LGTM after my comments are addressed https://codereview.chromium.org/1181743005/diff/260001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/260001/remoting/client/chromoting_stats.h#newcode22 remoting/client/chromoting_stats.h:22: const int kUMAStatsTimeWindowInSeconds ...
5 years, 5 months ago (2015-07-08 20:06:47 UTC) #25
anandc
Addressed comments. https://codereview.chromium.org/1181743005/diff/260001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/260001/remoting/client/chromoting_stats.h#newcode22 remoting/client/chromoting_stats.h:22: const int kUMAStatsTimeWindowInSeconds = 1; On 2015/07/08 ...
5 years, 5 months ago (2015-07-08 22:43:34 UTC) #26
Sergey Ulanov
lgtm
5 years, 5 months ago (2015-07-08 23:03:03 UTC) #27
Wez
https://codereview.chromium.org/1181743005/diff/280001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/280001/remoting/client/chromoting_stats.h#newcode22 remoting/client/chromoting_stats.h:22: static const int kUMAStatsTimeWindowInSeconds = 1; Why is this ...
5 years, 5 months ago (2015-07-08 23:27:55 UTC) #28
Wez
https://codereview.chromium.org/1181743005/diff/280001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/280001/remoting/client/chromoting_stats.h#newcode22 remoting/client/chromoting_stats.h:22: static const int kUMAStatsTimeWindowInSeconds = 1; nit: kUmaStats... https://codereview.chromium.org/1181743005/diff/280001/remoting/client/chromoting_stats.h#newcode46 ...
5 years, 5 months ago (2015-07-08 23:42:30 UTC) #29
anandc
Thanks a lot for the comments Wez. They helped me see a bug introduced in ...
5 years, 5 months ago (2015-07-09 19:17:10 UTC) #32
rkaplow
https://codereview.chromium.org/1181743005/diff/340001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/340001/remoting/client/plugin/chromoting_instance.cc#newcode77 remoting/client/plugin/chromoting_instance.cc:77: // Histograms expect samples to be less than the ...
5 years, 5 months ago (2015-07-10 17:41:40 UTC) #34
anandc
Thanks Robert. PTAL at the latest patch-set. Sergey/Wez: ping. https://codereview.chromium.org/1181743005/diff/340001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/340001/remoting/client/plugin/chromoting_instance.cc#newcode77 remoting/client/plugin/chromoting_instance.cc:77: ...
5 years, 5 months ago (2015-07-10 19:37:14 UTC) #35
anandc
On 2015/07/10 19:37:14, anandc wrote: > Thanks Robert. PTAL at the latest patch-set. > > ...
5 years, 5 months ago (2015-07-13 19:04:57 UTC) #36
rkaplow
Generally looks good, but asking asviktine@ for review as well. One thing I am not ...
5 years, 5 months ago (2015-07-13 19:23:12 UTC) #38
Alexei Svitkine (slow)
I think using enumeration macro for FPS is ok here - similar to the percentage ...
5 years, 5 months ago (2015-07-13 21:30:06 UTC) #39
Sergey Ulanov
still LGTM https://codereview.chromium.org/1181743005/diff/360001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/360001/remoting/client/plugin/chromoting_instance.cc#newcode87 remoting/client/plugin/chromoting_instance.cc:87: const int kBandwidthHistogramMax = 10240000; nit: This ...
5 years, 5 months ago (2015-07-13 21:55:28 UTC) #40
anandc
Thanks Alexei. PTAL. https://codereview.chromium.org/1181743005/diff/360001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/360001/remoting/client/plugin/chromoting_instance.cc#newcode81 remoting/client/plugin/chromoting_instance.cc:81: // ranging from 0 to 10MB/s, ...
5 years, 5 months ago (2015-07-14 19:44:23 UTC) #41
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1181743005/diff/380001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/380001/remoting/client/plugin/chromoting_instance.cc#newcode750 remoting/client/plugin/chromoting_instance.cc:750: ChromotingStats::kStatsUpdateFrequencyInSeconds)); Nit: Indent 2 more. https://codereview.chromium.org/1181743005/diff/380001/remoting/client/plugin/chromoting_instance.cc#newcode1071 remoting/client/plugin/chromoting_instance.cc:1071: ChromotingStats::kStatsUpdateFrequencyInSeconds)); ...
5 years, 5 months ago (2015-07-14 20:16:33 UTC) #42
Wez
https://codereview.chromium.org/1181743005/diff/360001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/360001/remoting/client/chromoting_stats.h#newcode21 remoting/client/chromoting_stats.h:21: // plugin for the frequency at which stats should ...
5 years, 5 months ago (2015-07-14 20:24:17 UTC) #43
anandc
Thanks Alexei and Wez. PTAL at PS#12. https://codereview.chromium.org/1181743005/diff/360001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/360001/remoting/client/chromoting_stats.h#newcode21 remoting/client/chromoting_stats.h:21: // plugin ...
5 years, 5 months ago (2015-07-15 03:59:55 UTC) #44
anandc
Ping.
5 years, 5 months ago (2015-07-16 17:42:34 UTC) #45
Wez
lgtm https://codereview.chromium.org/1181743005/diff/380001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/380001/remoting/client/chromoting_stats.h#newcode35 remoting/client/chromoting_stats.h:35: // N is defined by kLatencySampleSize. On 2015/07/15 ...
5 years, 5 months ago (2015-07-16 19:03:36 UTC) #46
anandc
https://codereview.chromium.org/1181743005/diff/380001/remoting/client/chromoting_stats.h File remoting/client/chromoting_stats.h (right): https://codereview.chromium.org/1181743005/diff/380001/remoting/client/chromoting_stats.h#newcode35 remoting/client/chromoting_stats.h:35: // N is defined by kLatencySampleSize. On 2015/07/16 19:03:35, ...
5 years, 5 months ago (2015-07-16 20:18:48 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181743005/420001
5 years, 5 months ago (2015-07-16 20:23:50 UTC) #50
Alexei Svitkine (slow)
https://codereview.chromium.org/1181743005/diff/400001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/1181743005/diff/400001/remoting/client/plugin/chromoting_instance.cc#newcode87 remoting/client/plugin/chromoting_instance.cc:87: // normalized to 1. So we'll set the minimum ...
5 years, 5 months ago (2015-07-16 20:50:59 UTC) #51
Alexei Svitkine (slow)
https://codereview.chromium.org/1181743005/diff/380001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1181743005/diff/380001/tools/metrics/histograms/histograms.xml#newcode3445 tools/metrics/histograms/histograms.xml:3445: + <owner>anandc@chromium.org</owner> On 2015/07/15 03:59:55, anandc wrote: > On ...
5 years, 5 months ago (2015-07-16 20:58:22 UTC) #52
commit-bot: I haz the power
Committed patchset #13 (id:420001)
5 years, 5 months ago (2015-07-16 22:00:26 UTC) #53
commit-bot: I haz the power
5 years, 5 months ago (2015-07-16 22:01:19 UTC) #54
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/b877083e221c58a67a9a00e2024050f069948c6d
Cr-Commit-Position: refs/heads/master@{#339136}

Powered by Google App Engine
This is Rietveld 408576698