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

Issue 641453003: Add metrics for the number of attached displays. (Closed)

Created:
6 years, 2 months ago by erikchen
Modified:
6 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add metrics for the number of attached displays. This CL adds 2 metrics. The first records the number of attached displays at the time that Chrome is launched. The second records the number of attached displays immediately after the user has added or removed a display. BUG=418703 Committed: https://crrev.com/90b1ea7b00271b0fe7594d2a2efb00eff3c9bd92 Cr-Commit-Position: refs/heads/master@{#301889}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments from rsesek. #

Total comments: 2

Patch Set 3 : ENUMERATION -> COUNTS_100 #

Total comments: 4

Patch Set 4 : displayCount_ -> display_count_ #

Total comments: 2

Patch Set 5 : Comments from isherman. #

Total comments: 4

Patch Set 6 : Comments from isherman. #

Patch Set 7 : Add missing destructor override. #

Patch Set 8 : Compile display_observer.cc on android. #

Patch Set 9 : Rebase against top of tree. #

Patch Set 10 : Rebase against top of tree. Delay recording of metrics. #

Patch Set 11 : Fix android gn. #

Total comments: 4

Patch Set 12 : Comments from isherman. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -4 lines) Patch
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 6 7 8 9 3 chunks +33 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +16 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M ui/gfx/screen_mac.mm View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (21 generated)
erikchen
rsesek: Please review.
6 years, 2 months ago (2014-10-08 01:28:35 UTC) #2
Robert Sesek
https://codereview.chromium.org/641453003/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h (right): https://codereview.chromium.org/641453003/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h#newcode33 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h:33: base::scoped_ptr<ChromeBrowserMainExtraPartsMetricsMac> I think this could be an OS_MACOSX-specific method ...
6 years, 2 months ago (2014-10-08 19:25:20 UTC) #3
erikchen
https://codereview.chromium.org/641453003/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h (right): https://codereview.chromium.org/641453003/diff/1/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h#newcode33 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h:33: base::scoped_ptr<ChromeBrowserMainExtraPartsMetricsMac> On 2014/10/08 19:25:20, Robert Sesek wrote: > I ...
6 years, 2 months ago (2014-10-08 22:49:19 UTC) #4
chromium-reviews
Exponential histograms give you low resolution at the low counts range already. iirc, you get ...
6 years, 2 months ago (2014-10-09 05:44:14 UTC) #5
Robert Sesek
On 2014/10/09 05:44:14, chromium-reviews wrote: > Exponential histograms give you low resolution at the low ...
6 years, 2 months ago (2014-10-09 14:42:28 UTC) #6
erikchen
rsesek: PTAL I switched to UMA_HISTOGRAM_COUNTS_100 as it has buckets for all integers between 1 ...
6 years, 2 months ago (2014-10-09 22:29:28 UTC) #9
Robert Sesek
LGTM w/ nits https://codereview.chromium.org/641453003/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h (right): https://codereview.chromium.org/641453003/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h#newcode29 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h:29: int displayCount_; naming: display_count_ https://codereview.chromium.org/641453003/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.mm File ...
6 years, 2 months ago (2014-10-10 15:17:07 UTC) #10
erikchen
https://codereview.chromium.org/641453003/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h (right): https://codereview.chromium.org/641453003/diff/40001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h#newcode29 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h:29: int displayCount_; On 2014/10/10 15:17:07, Robert Sesek wrote: > ...
6 years, 2 months ago (2014-10-10 17:01:54 UTC) #11
erikchen
isherman: Looking for OWNER review of chrome/browser/metrics/* and tools/metrics/histograms/* avi: Looking for OWNER review of ...
6 years, 2 months ago (2014-10-10 17:05:21 UTC) #13
Avi (use Gerrit)
On 2014/10/10 17:05:21, erikchen wrote: > isherman: Looking for OWNER review of chrome/browser/metrics/* and > ...
6 years, 2 months ago (2014-10-10 17:20:44 UTC) #14
Ilya Sherman
https://codereview.chromium.org/641453003/diff/210001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h (right): https://codereview.chromium.org/641453003/diff/210001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h#newcode32 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h:32: }; None of this code looks Mac-specific. Why are ...
6 years, 2 months ago (2014-10-10 22:29:57 UTC) #15
erikchen
On 2014/10/10 22:29:57, Ilya Sherman wrote: > https://codereview.chromium.org/641453003/diff/210001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h > File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h > (right): > > ...
6 years, 2 months ago (2014-10-10 22:51:19 UTC) #16
Ilya Sherman
On 2014/10/10 22:51:19, erikchen wrote: > On 2014/10/10 22:29:57, Ilya Sherman wrote: > > > ...
6 years, 2 months ago (2014-10-10 22:53:48 UTC) #17
erikchen
On 2014/10/10 22:53:48, Ilya Sherman wrote: > On 2014/10/10 22:51:19, erikchen wrote: > > On ...
6 years, 2 months ago (2014-10-14 01:11:25 UTC) #20
erikchen
https://codereview.chromium.org/641453003/diff/210001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h (right): https://codereview.chromium.org/641453003/diff/210001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h#newcode32 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics_mac.h:32: }; On 2014/10/10 22:29:57, Ilya Sherman wrote: > None ...
6 years, 2 months ago (2014-10-14 01:11:32 UTC) #21
Ilya Sherman
I started pondering why we didn't already have a metric like this, and realized that ...
6 years, 2 months ago (2014-10-14 06:34:22 UTC) #22
erikchen
One of the metrics measured in this CL (Hardware.Display.Count.OnStartup) is available as raw dremel data, ...
6 years, 2 months ago (2014-10-14 23:09:38 UTC) #23
Ilya Sherman
LGTM, thanks.
6 years, 2 months ago (2014-10-14 23:10:46 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/390001
6 years, 2 months ago (2014-10-14 23:14:41 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/18315)
6 years, 2 months ago (2014-10-14 23:48:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/410001
6 years, 2 months ago (2014-10-15 00:08:26 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/18337) linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/25654)
6 years, 2 months ago (2014-10-15 00:42:42 UTC) #32
erikchen
sky: Looking for an OWNER review of ui/gfx/gfx.gyp.
6 years, 2 months ago (2014-10-21 19:01:47 UTC) #34
sky
LGTM
6 years, 2 months ago (2014-10-21 19:47:47 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/430001
6 years, 2 months ago (2014-10-21 19:51:53 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/76460) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/26187) android_arm64_dbg_recipe ...
6 years, 2 months ago (2014-10-21 19:59:47 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/450001
6 years, 2 months ago (2014-10-22 00:48:14 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/71200)
6 years, 2 months ago (2014-10-22 01:22:24 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/450001
6 years, 2 months ago (2014-10-22 01:29:53 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/71217) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/66512)
6 years, 2 months ago (2014-10-22 01:55:37 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/450001
6 years, 2 months ago (2014-10-22 17:13:12 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/4946) linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/3702) linux_chromium_rel ...
6 years, 2 months ago (2014-10-22 17:23:37 UTC) #51
erikchen
[3162:3162:1021/191413:FATAL:screen_aura.cc(12)] Check failed: false. Implementation should be installed at higher level.
6 years, 2 months ago (2014-10-22 23:16:08 UTC) #52
erikchen
isherman: PTAL Diff patch set 11 against patch set 9. I had to delay the ...
6 years, 1 month ago (2014-10-29 01:23:06 UTC) #54
Ilya Sherman
LGTM % nits: https://codereview.chromium.org/641453003/diff/510001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h (right): https://codereview.chromium.org/641453003/diff/510001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h#newcode47 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h:47: int display_count_; nit: Please leave a ...
6 years, 1 month ago (2014-10-29 01:30:11 UTC) #55
erikchen
https://codereview.chromium.org/641453003/diff/510001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h (right): https://codereview.chromium.org/641453003/diff/510001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h#newcode47 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h:47: int display_count_; On 2014/10/29 01:30:10, Ilya Sherman wrote: > ...
6 years, 1 month ago (2014-10-29 17:15:41 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/641453003/530001
6 years, 1 month ago (2014-10-29 17:17:34 UTC) #58
commit-bot: I haz the power
Committed patchset #12 (id:530001)
6 years, 1 month ago (2014-10-29 18:42:45 UTC) #59
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 18:43:32 UTC) #60
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/90b1ea7b00271b0fe7594d2a2efb00eff3c9bd92
Cr-Commit-Position: refs/heads/master@{#301889}

Powered by Google App Engine
This is Rietveld 408576698