|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by charleszhao Modified:
3 years, 10 months ago CC:
chromium-reviews, dominickn+watch_chromium.org, asvitkine+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description(1) Add a new histogram for EngagementScore to check whether it's zero
or non-zero.
(2) The score is treated as 0 if it's less than ScoreCleanupThreshold.
BUG=656834
Review-Url: https://codereview.chromium.org/2633283002
Cr-Commit-Position: refs/heads/master@{#446956}
Committed: https://chromium.googlesource.com/chromium/src/+/169ed39de473bb196dcb5960e4c19ced3336de4e
Patch Set 1 #
Total comments: 2
Patch Set 2 : "Changed onwer." #
Total comments: 9
Patch Set 3 : Changed histogram.xml description and owner order. Also changed the method of counting zero. #
Messages
Total messages: 51 (31 generated)
Description was changed from ========== (1) Add a new histogram for EngagementScore to check whether it's zero or non-zero. (2) The score is treated as 0 if it's less than ScoreCleanupThreshold. BUG=656834 ========== to ========== (1) Add a new histogram for EngagementScore to check whether it's zero or non-zero. (2) The score is treated as 0 if it's less than ScoreCleanupThreshold. BUG=656834 ==========
charleszhao@chromium.org changed reviewers: + kcarattini@chromium.org
The CQ bit was checked by charleszhao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
charleszhao@chromium.org changed reviewers: + dominickn@chromium.org
Thanks for doing this! Kendra https://codereview.chromium.org/2633283002/diff/1/tools/metrics/histograms/hi... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2633283002/diff/1/tools/metrics/histograms/hi... tools/metrics/histograms/histograms.xml:62462: + <owner>calamity@chromium.org</owner> I think leave out calamity and add me instead, he doesn't work on this anymore.
https://codereview.chromium.org/2633283002/diff/1/tools/metrics/histograms/hi... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2633283002/diff/1/tools/metrics/histograms/hi... tools/metrics/histograms/histograms.xml:62462: + <owner>calamity@chromium.org</owner> On 2017/01/18 23:53:45, kcarattini wrote: > I think leave out calamity and add me instead, he doesn't work on this anymore. Done.
Thanks Charles https://codereview.chromium.org/2633283002/diff/20001/chrome/browser/engageme... File chrome/browser/engagement/site_engagement_metrics.cc (right): https://codereview.chromium.org/2633283002/diff/20001/chrome/browser/engageme... chrome/browser/engagement/site_engagement_metrics.cc:102: const double threshold_0 = SiteEngagementScore::GetScoreCleanupThreshold(); I think you can just compare score == 0 here rather than the cleanup threshold. Scores can be below the cleanup threshold for an arbitrarily long length of time (we only cleanup after startup, and if Chrome has been open but idle for some number of hours, i.e. no engagement is being earned). https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62461: +<histogram name="SiteEngagementService.EngagementScore.Zero"> Call this EngagementScore.IsZero. add enum="Boolean" in the histogram tag https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62464: + <owner>charleszhao@chromium.org</owner> The owners should be sorted in alphabetical order: you first, then me, then kcarattini. https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62467: + SiteEngagementService.EngagementScore, but only counted as nearly-zero or Change this to say, "The distribution of zero versus non-zero engagement scores accumulated by the user, recorded at the same time as SiteEngagementService.EngagementScore"
Also: please remove the (1) from the title
Thanks Kendra, Dom. https://codereview.chromium.org/2633283002/diff/20001/chrome/browser/engageme... File chrome/browser/engagement/site_engagement_metrics.cc (right): https://codereview.chromium.org/2633283002/diff/20001/chrome/browser/engageme... chrome/browser/engagement/site_engagement_metrics.cc:102: const double threshold_0 = SiteEngagementScore::GetScoreCleanupThreshold(); On 2017/01/20 02:11:53, dominickn wrote: > I think you can just compare score == 0 here rather than the cleanup threshold. > Scores can be below the cleanup threshold for an arbitrarily long length of time > (we only cleanup after startup, and if Chrome has been open but idle for some > number of hours, i.e. no engagement is being earned). Done. https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62461: +<histogram name="SiteEngagementService.EngagementScore.Zero"> On 2017/01/20 02:11:53, dominickn wrote: > Call this EngagementScore.IsZero. > > add enum="Boolean" in the histogram tag Done. https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62461: +<histogram name="SiteEngagementService.EngagementScore.Zero"> On 2017/01/20 02:11:53, dominickn wrote: > Call this EngagementScore.IsZero. > > add enum="Boolean" in the histogram tag Done. https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62464: + <owner>charleszhao@chromium.org</owner> On 2017/01/20 02:11:53, dominickn wrote: > The owners should be sorted in alphabetical order: you first, then me, then > kcarattini. Done. https://codereview.chromium.org/2633283002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:62467: + SiteEngagementService.EngagementScore, but only counted as nearly-zero or On 2017/01/20 02:11:53, dominickn wrote: > Change this to say, "The distribution of zero versus non-zero engagement scores > accumulated by the user, recorded at the same time as > SiteEngagementService.EngagementScore" Done.
lgtm, thanks Charles
lgtm
The CQ bit was checked by charleszhao@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by charleszhao@chromium.org
The CQ bit was unchecked by charleszhao@chromium.org
The CQ bit was checked by charleszhao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by charleszhao@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
You need a reviewer for tools/metrics/histograms/histograms.xml
On 2017/01/24 06:52:40, dominickn wrote: > You need a reviewer for tools/metrics/histograms/histograms.xml Thanks! Dom.
charleszhao@chromium.org changed reviewers: + jwd@chromium.org
On 2017/01/24 07:20:13, charleszhao wrote: > On 2017/01/24 06:52:40, dominickn wrote: > > You need a reviewer for tools/metrics/histograms/histograms.xml > > Thanks! Dom. Hi jwd, need owner review for 1 file: tools/metrics/histograms/histograms.xml
Thanks jwd for the owner review!
lgtm
The CQ bit was checked by charleszhao@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by charleszhao@chromium.org
The CQ bit was checked by charleszhao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by charleszhao@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by charleszhao@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1485748003464790,
"parent_rev": "2112ddfabe748e6a6a6f9fdbb7de7ade58326957", "commit_rev":
"169ed39de473bb196dcb5960e4c19ced3336de4e"}
Message was sent while issue was closed.
Description was changed from ========== (1) Add a new histogram for EngagementScore to check whether it's zero or non-zero. (2) The score is treated as 0 if it's less than ScoreCleanupThreshold. BUG=656834 ========== to ========== (1) Add a new histogram for EngagementScore to check whether it's zero or non-zero. (2) The score is treated as 0 if it's less than ScoreCleanupThreshold. BUG=656834 Review-Url: https://codereview.chromium.org/2633283002 Cr-Commit-Position: refs/heads/master@{#446956} Committed: https://chromium.googlesource.com/chromium/src/+/169ed39de473bb196dcb5960e4c1... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/169ed39de473bb196dcb5960e4c1... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
