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

Issue 253203002: Log operator code histogram on new metric log (Closed)

Created:
6 years, 7 months ago by bolian
Modified:
6 years, 7 months ago
CC:
chromium-reviews, jar (doing other things), asvitkine+watch_chromium.org, Matt Welsh
Base URL:
https://chromium.googlesource.com/chromium/src.git@api_move
Visibility:
Public.

Description

This is the separate change mentioned in comments of https://codereview.chromium.org/246553003/. It emits NCN.NetworkOperatorMCCMNC_NewMetricsLog on new metric log creation with the network operator MCC_MNC code BUG=355604 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269627

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Added new histogram, removed synthetic trial. #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : remove unused headers. #

Patch Set 8 : . #

Total comments: 20

Patch Set 9 : addressed comments. #

Patch Set 10 : sync'ed to head, added test. #

Total comments: 40

Patch Set 11 : addressed more comments. #

Total comments: 20

Patch Set 12 : addressed more comments. #

Total comments: 2

Patch Set 13 : fixed comment nits. #

Patch Set 14 : combine and rename metric name. #

Total comments: 17

Patch Set 15 : addressed more comments. #

Patch Set 16 : . #

Patch Set 17 : create observer in ChromeBrowserMainExtraPartsMetrics::PostBrowserStart() #

Total comments: 6

Patch Set 18 : remove incorrect NotifyOnDidCreateMetricsLog call. #

Total comments: 6

Patch Set 19 : sync'ed to head and addressed comments. #

Patch Set 20 : sync again and updated tests. #

Patch Set 21 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -32 lines) Patch
A chrome/browser/chrome_browser_metrics_service_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/chrome_browser_metrics_service_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +26 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +36 lines, -0 lines 0 comments Download
A chrome/browser/metrics/metrics_service_observer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +25 lines, -0 lines 0 comments Download
A + chrome/browser/metrics/metrics_service_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/metrics/metrics_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +48 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +20 lines, -16 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 61 (0 generated)
bolian
Hello, This CL annotate each metric log upload with a operator code synthetic trial if ...
6 years, 7 months ago (2014-05-01 18:17:23 UTC) #1
Alexei Svitkine (slow)
Hmm, the synthetic trials framework wasn't really meant for cases like these. It's really meant ...
6 years, 7 months ago (2014-05-01 18:24:11 UTC) #2
bolian
Ben will setup a meeting. Let's discuss the operator code related issues through :)
6 years, 7 months ago (2014-05-01 18:26:19 UTC) #3
chromium-reviews
I just left a comment on https://codereview.chromium.org/246553003/ about the histogram solution. Bottom line is that ...
6 years, 7 months ago (2014-05-01 18:28:23 UTC) #4
bolian1
We need a way to associate an upload with the operator code when the connection ...
6 years, 7 months ago (2014-05-01 21:35:58 UTC) #5
Ilya Sherman
On 2014/05/01 21:35:58, bolian1 wrote: > We need a way to associate an upload with ...
6 years, 7 months ago (2014-05-01 21:47:27 UTC) #6
bolian
The synthetic trail does 1) and 2) except that the trial is not logged when ...
6 years, 7 months ago (2014-05-01 22:15:50 UTC) #7
Ilya Sherman
On 2014/05/01 22:15:50, bolian wrote: > The synthetic trail does 1) and 2) except that ...
6 years, 7 months ago (2014-05-01 22:24:19 UTC) #8
bolian
On 2014/05/01 22:24:19, Ilya Sherman wrote: > IMO, logging the values when (1) and (2) ...
6 years, 7 months ago (2014-05-01 22:58:54 UTC) #9
bolian
Hello, As we discussed, this CL adds an observer to metric log creation and log ...
6 years, 7 months ago (2014-05-05 20:57:06 UTC) #10
bengr
https://codereview.chromium.org/253203002/diff/130001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/130001/chrome/browser/chrome_browser_main.cc#newcode563 chrome/browser/chrome_browser_main.cc:563: MetricsService* metrics = browser_process_->metrics_service(); Why did you move this ...
6 years, 7 months ago (2014-05-06 17:14:38 UTC) #11
bolian
https://codereview.chromium.org/253203002/diff/130001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/130001/chrome/browser/chrome_browser_main.cc#newcode563 chrome/browser/chrome_browser_main.cc:563: MetricsService* metrics = browser_process_->metrics_service(); Move it so that the ...
6 years, 7 months ago (2014-05-06 18:00:07 UTC) #12
bolian
Hello Ilya, Alexei, and Lei Could you take a look at this change? Trying to ...
6 years, 7 months ago (2014-05-06 21:05:42 UTC) #13
Alexei Svitkine (slow)
Change generally looks good. Any chance you can add a metrics service unit test for ...
6 years, 7 months ago (2014-05-06 21:11:10 UTC) #14
Lei Zhang
I mostly defer to Ilya (or jar@) for metrics.
6 years, 7 months ago (2014-05-06 21:16:15 UTC) #15
bolian
Thanks, added test.
6 years, 7 months ago (2014-05-06 23:14:13 UTC) #16
Ilya Sherman
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); I am not an owner for this ...
6 years, 7 months ago (2014-05-07 01:03:16 UTC) #17
bolian
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); This is not resolved yet. It is ...
6 years, 7 months ago (2014-05-07 02:20:25 UTC) #18
bengr
https://codereview.chromium.org/253203002/diff/190001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/253203002/diff/190001/chrome/browser/metrics/metrics_service.h#newcode367 chrome/browser/metrics/metrics_service.h:367: // Registers/unregsiters |observer| to receive MetricsLog notifications. unregisters https://codereview.chromium.org/253203002/diff/190001/chrome/browser/metrics/metrics_service.h#newcode636 ...
6 years, 7 months ago (2014-05-07 16:03:57 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/253203002/diff/190001/chrome/browser/chrome_browser_metrics_service_observer.h File chrome/browser/chrome_browser_metrics_service_observer.h (right): https://codereview.chromium.org/253203002/diff/190001/chrome/browser/chrome_browser_metrics_service_observer.h#newcode10 chrome/browser/chrome_browser_metrics_service_observer.h:10: class ChromeBrowserMetricsServiceObserver: public MetricsServiceObserver { Nit: Space before : ...
6 years, 7 months ago (2014-05-07 17:05:41 UTC) #20
bolian
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); On 2014/05/07 02:20:26, bolian wrote: > This ...
6 years, 7 months ago (2014-05-07 18:11:43 UTC) #21
Ilya Sherman
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); On 2014/05/07 18:11:44, bolian wrote: > On ...
6 years, 7 months ago (2014-05-07 23:57:39 UTC) #22
bolian
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); I keep remind myself that MetricsServiceObserver has ...
6 years, 7 months ago (2014-05-08 00:54:51 UTC) #23
Ilya Sherman
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); On 2014/05/08 00:54:51, bolian wrote: > I ...
6 years, 7 months ago (2014-05-08 01:10:10 UTC) #24
bolian
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); We have abstracted it to be an ...
6 years, 7 months ago (2014-05-08 01:29:57 UTC) #25
Alexei Svitkine (slow)
I think if we put it in the constructor now, we'll need to revisit that ...
6 years, 7 months ago (2014-05-08 03:07:27 UTC) #26
Ilya Sherman
https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/253203002/diff/170001/chrome/browser/chrome_browser_main.cc#newcode565 chrome/browser/chrome_browser_main.cc:565: browser_metrics_log_observer_.reset(new ChromeBrowserMetricsLogObserver()); On 2014/05/08 01:29:58, bolian wrote: > We ...
6 years, 7 months ago (2014-05-08 03:09:40 UTC) #27
Ilya Sherman
On 2014/05/08 03:07:27, Alexei Svitkine wrote: > I think if we put it in the ...
6 years, 7 months ago (2014-05-08 03:12:03 UTC) #28
bolian
Let loop in Lei for that. Hi Lei, Could you take a look at the ...
6 years, 7 months ago (2014-05-08 03:47:17 UTC) #29
Ilya Sherman
Thanks. https://codereview.chromium.org/253203002/diff/250001/chrome/browser/chrome_browser_metrics_service_observer.cc File chrome/browser/chrome_browser_metrics_service_observer.cc (right): https://codereview.chromium.org/253203002/diff/250001/chrome/browser/chrome_browser_metrics_service_observer.cc#newcode37 chrome/browser/chrome_browser_metrics_service_observer.cc:37: UMA_HISTOGRAM_SPARSE_SLOWLY("NCN.NetworkOperatorMCCMNC", mcc_mnc); Can you share lines 27-37 with ...
6 years, 7 months ago (2014-05-08 03:48:39 UTC) #30
Lei Zhang
Some questions: - Will there be another class that implements MetricsLogObserver in the near future? ...
6 years, 7 months ago (2014-05-08 05:40:18 UTC) #31
bolian
Thanks for the review! - Will there be another class that implements MetricsLogObserver in the ...
6 years, 7 months ago (2014-05-08 06:38:24 UTC) #32
Lei Zhang
On 2014/05/08 06:38:24, bolian wrote: > Thanks for the review! > > - Will there ...
6 years, 7 months ago (2014-05-08 07:22:46 UTC) #33
Alexei Svitkine (slow)
On 2014/05/08 07:22:46, Lei Zhang wrote: > On 2014/05/08 06:38:24, bolian wrote: > > Thanks ...
6 years, 7 months ago (2014-05-08 15:23:49 UTC) #34
bolian
On 2014/05/08 15:23:49, Alexei Svitkine wrote: > On 2014/05/08 07:22:46, Lei Zhang wrote: > > ...
6 years, 7 months ago (2014-05-08 16:42:05 UTC) #35
Lei Zhang
On 2014/05/08 15:23:49, Alexei Svitkine wrote: > On 2014/05/08 07:22:46, Lei Zhang wrote: > > ...
6 years, 7 months ago (2014-05-08 18:32:30 UTC) #36
Ilya Sherman
On 2014/05/08 18:32:30, Lei Zhang wrote: > On 2014/05/08 15:23:49, Alexei Svitkine wrote: > > ...
6 years, 7 months ago (2014-05-08 18:36:53 UTC) #37
Alexei Svitkine (slow)
I think we'll want more events to be observed in the future. For example, check ...
6 years, 7 months ago (2014-05-08 18:42:29 UTC) #38
Lei Zhang
On 2014/05/08 18:42:29, Alexei Svitkine wrote: > I think we'll want more events to be ...
6 years, 7 months ago (2014-05-08 18:51:14 UTC) #39
Alexei Svitkine (slow)
Although now that I'm looking at MetricsService more closely for the component refactoring, it occurs ...
6 years, 7 months ago (2014-05-08 19:55:18 UTC) #40
bolian
On 2014/05/08 19:55:18, Alexei Svitkine wrote: > Although now that I'm looking at MetricsService more ...
6 years, 7 months ago (2014-05-08 20:22:16 UTC) #41
Lei Zhang
Generally lgtm. https://codereview.chromium.org/253203002/diff/300001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/253203002/diff/300001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode162 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:162: metrics_service_observer_.reset(new ChromeBrowserMetricsServiceObserver()); If you want this to ...
6 years, 7 months ago (2014-05-08 20:32:15 UTC) #42
Ilya Sherman
On 2014/05/08 20:22:16, bolian wrote: > On 2014/05/08 19:55:18, Alexei Svitkine wrote: > > Although ...
6 years, 7 months ago (2014-05-08 20:43:30 UTC) #43
Alexei Svitkine (slow)
Okay, chatted with Ilya offline re: my previous comment. Ilya convinced me that it makes ...
6 years, 7 months ago (2014-05-08 21:00:55 UTC) #44
bolian
Thanks! I am keep the current observer. https://codereview.chromium.org/253203002/diff/300001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/253203002/diff/300001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode162 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:162: metrics_service_observer_.reset(new ChromeBrowserMetricsServiceObserver()); ...
6 years, 7 months ago (2014-05-08 22:17:56 UTC) #45
Alexei Svitkine (slow)
lgtm % comment Please wait for Ilya's review as well. https://codereview.chromium.org/253203002/diff/320001/chrome/browser/metrics/metrics_service_observer.h File chrome/browser/metrics/metrics_service_observer.h (right): https://codereview.chromium.org/253203002/diff/320001/chrome/browser/metrics/metrics_service_observer.h#newcode18 ...
6 years, 7 months ago (2014-05-08 22:26:53 UTC) #46
Ilya Sherman
https://chromiumcodereview.appspot.com/253203002/diff/320001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://chromiumcodereview.appspot.com/253203002/diff/320001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode160 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:160: // We only need this histogram for Android for ...
6 years, 7 months ago (2014-05-08 22:43:21 UTC) #47
Ilya Sherman
Sorry, meant to say: LGTM with the remaining nits addressed. Thanks for bearing with us ...
6 years, 7 months ago (2014-05-08 22:44:32 UTC) #48
bolian
Thank you very much for the review! https://codereview.chromium.org/253203002/diff/320001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc File chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc (right): https://codereview.chromium.org/253203002/diff/320001/chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc#newcode160 chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc:160: // We ...
6 years, 7 months ago (2014-05-08 22:57:00 UTC) #49
bolian
Np at all. Thanks for the comments.
6 years, 7 months ago (2014-05-08 22:57:32 UTC) #50
bolian
Hello Misha, Could you take a look at the //net/base part of the change? Abstracted ...
6 years, 7 months ago (2014-05-08 23:05:17 UTC) #51
mef
net/base/ lgtm
6 years, 7 months ago (2014-05-09 17:37:29 UTC) #52
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 7 months ago (2014-05-09 17:44:38 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/253203002/340001
6 years, 7 months ago (2014-05-09 17:46:03 UTC) #54
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 7 months ago (2014-05-09 19:37:44 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/253203002/360001
6 years, 7 months ago (2014-05-09 19:40:43 UTC) #56
bolian
The CQ bit was unchecked by bolian@chromium.org
6 years, 7 months ago (2014-05-09 20:30:33 UTC) #57
bolian
The CQ bit was checked by bolian@chromium.org
6 years, 7 months ago (2014-05-09 20:33:24 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bolian@chromium.org/253203002/380001
6 years, 7 months ago (2014-05-09 20:37:19 UTC) #59
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 22:40:17 UTC) #60
commit-bot: I haz the power
6 years, 7 months ago (2014-05-10 19:59:08 UTC) #61
Message was sent while issue was closed.
Change committed as 269627

Powered by Google App Engine
This is Rietveld 408576698