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

Issue 1638013002: Add UMA histograms to track very brief or frequent tabs and JS dialogs. (Closed)

Created:
4 years, 11 months ago by Joe Mason
Modified:
4 years, 10 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, vmpstr+watch_chromium.org, catekp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA histograms to track very brief or frequent tabs and JS dialogs. Committed: https://crrev.com/850904a0f10197a0ee95f182bfdb18ea838872a4 Cr-Commit-Position: refs/heads/master@{#374262}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Tweak comment, move JS close logic to helper func #

Total comments: 1

Patch Set 3 : Use standard UMA time macros #

Total comments: 2

Patch Set 4 : Rename histograms; ignore blocked JS dialogs #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -10 lines) Patch
M chrome/browser/ui/tabs/tab_strip_model_stats_recorder.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_strip_model_stats_recorder.cc View 1 2 3 5 chunks +31 lines, -0 lines 0 comments Download
M components/app_modal/javascript_app_modal_dialog.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M components/app_modal/javascript_app_modal_dialog.cc View 1 2 3 5 chunks +21 lines, -10 lines 1 comment Download
M components/app_modal/javascript_dialog_manager.h View 2 chunks +6 lines, -0 lines 0 comments Download
M components/app_modal/javascript_dialog_manager.cc View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 2 chunks +57 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
Joe Mason
PTAL
4 years, 11 months ago (2016-01-26 20:34:01 UTC) #2
Ilya Sherman
It would be helpful for me to understand more about the motivation behind this CL. ...
4 years, 11 months ago (2016-01-26 22:39:04 UTC) #3
Joe Mason
https://codereview.chromium.org/1638013002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1638013002/diff/1/base/metrics/histogram_macros.h#newcode186 base/metrics/histogram_macros.h:186: // up to a minute, using 100 buckets. There's ...
4 years, 10 months ago (2016-01-27 16:51:21 UTC) #4
Joe Mason
https://codereview.chromium.org/1638013002/diff/1/components/app_modal/javascript_app_modal_dialog.cc File components/app_modal/javascript_app_modal_dialog.cc (right): https://codereview.chromium.org/1638013002/diff/1/components/app_modal/javascript_app_modal_dialog.cc#newcode101 components/app_modal/javascript_app_modal_dialog.cc:101: base::TimeTicks::Now() - creation_time_); On 2016/01/26 22:39:04, Ilya Sherman wrote: ...
4 years, 10 months ago (2016-01-27 19:43:50 UTC) #5
Ilya Sherman
https://codereview.chromium.org/1638013002/diff/1/base/metrics/histogram_macros.h File base/metrics/histogram_macros.h (right): https://codereview.chromium.org/1638013002/diff/1/base/metrics/histogram_macros.h#newcode189 base/metrics/histogram_macros.h:189: base::TimeDelta::FromMinutes(1), 100) On 2016/01/27 16:51:21, joenotcharles wrote: > On ...
4 years, 10 months ago (2016-01-28 05:25:26 UTC) #6
Joe Mason
On 2016/01/28 05:25:26, Ilya Sherman wrote: > Okay. I guess it's okay to land these ...
4 years, 10 months ago (2016-01-28 15:57:16 UTC) #7
Ilya Sherman
Alright, this makes a lot more sense to me now =) LGTM.
4 years, 10 months ago (2016-01-29 01:10:18 UTC) #8
sky
LGTM, but I would prefer a more descriptive name name as mentioned below. https://codereview.chromium.org/1638013002/diff/40001/chrome/browser/ui/tabs/tab_strip_model_stats_recorder.cc File ...
4 years, 10 months ago (2016-01-29 17:25:51 UTC) #9
Joe Mason
On 2016/01/29 17:25:51, sky wrote: > https://codereview.chromium.org/1638013002/diff/40001/chrome/browser/ui/tabs/tab_strip_model_stats_recorder.cc#newcode46 > chrome/browser/ui/tabs/tab_strip_model_stats_recorder.cc:46: base::TimeTicks > CreationTime() const { return ...
4 years, 10 months ago (2016-01-29 17:54:48 UTC) #10
sky
IMO TimeBetweenTabCloseAndNewTabCreated is much clearer. Yes, it's a bit longer, but does that really matter? ...
4 years, 10 months ago (2016-01-29 20:49:53 UTC) #11
Joe Mason
avi, PTAL at the app_modal changes. I'll be away next week so please CQ+ if ...
4 years, 10 months ago (2016-01-29 22:20:41 UTC) #13
Avi (use Gerrit)
LGTM https://codereview.chromium.org/1638013002/diff/60001/components/app_modal/javascript_app_modal_dialog.cc File components/app_modal/javascript_app_modal_dialog.cc (right): https://codereview.chromium.org/1638013002/diff/60001/components/app_modal/javascript_app_modal_dialog.cc#newcode166 components/app_modal/javascript_app_modal_dialog.cc:166: // difference is not significant, more common code ...
4 years, 10 months ago (2016-01-30 04:41:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1638013002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1638013002/60001
4 years, 10 months ago (2016-02-08 19:21:20 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/90343)
4 years, 10 months ago (2016-02-08 19:47:35 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1638013002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1638013002/60001
4 years, 10 months ago (2016-02-08 20:13:34 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-09 01:50:54 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 01:51:52 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/850904a0f10197a0ee95f182bfdb18ea838872a4
Cr-Commit-Position: refs/heads/master@{#374262}

Powered by Google App Engine
This is Rietveld 408576698