|
|
DescriptionLog the creation of dialog boxes using DialogDelegateView and BubbleDialogDelegateView.
BUG=705331
Review-Url: https://codereview.chromium.org/2867683002
Cr-Commit-Position: refs/heads/master@{#471137}
Committed: https://chromium.googlesource.com/chromium/src/+/fe27ed665852a667acdba62f8a77a1d9969170da
Patch Set 1 #
Total comments: 1
Patch Set 2 : Use histogram_suffixes. #
Total comments: 5
Patch Set 3 : Expand descriptions. #
Messages
Total messages: 31 (18 generated)
The CQ bit was checked by pdyson@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...
pdyson@chromium.org changed reviewers: + jwd@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
LGTM with xml change. https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... tools/metrics/histograms/histograms.xml:11856: +<histogram name="Dialog.BubbleDialogDelegateView.Creation" Can you refactor these histograms using the histogram suffixes. You can do this using ordering="prefix". More info about suffixes is at the top of this file. This is just a change to the XML.
On 2017/05/08 at 22:37:16, jwd wrote: > LGTM with xml change. > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > tools/metrics/histograms/histograms.xml:11856: +<histogram name="Dialog.BubbleDialogDelegateView.Creation" > Can you refactor these histograms using the histogram suffixes. You can do this using ordering="prefix". More info about suffixes is at the top of this file. This is just a change to the XML. I made this change, but it was not as easy as just changing the xml. The existing metric Dialog.Creation uses the enum DialogName, but for all of the other Dialog.*.Creation metrics we need to use the enum BooleanCreated. I couldn't see a way of doing this using histogram_suffixes. So I made a new histogram called Dialog.Create (instead of Creation) and then made Dialog.DelegateView.Create and Dialog.BubbleDialogDelegateView.Create using histogram_suffixes. This meant I had to change the metric in the code from *.Creation to *.Create. Dialog.Delegate.Creation is now the odd one out. To be consistent it should be Dialog.Delegate.Create, but as Dialog.Delegate.Creation already exists, we would need to deprecate that (in another cl). Please, let me know if we should do that or leave Dialog.Delegate.Creation is as it. I also got a warning when uploading that the histogram names Dialog.BubbleDialogDelegateView.Create and Dialog.DelegateView.Create have no match is histograms.xml. I think I did it correctly, but am cautious as I got the warning.
The CQ bit was checked by pdyson@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: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
On 2017/05/09 04:24:15, pdyson wrote: > On 2017/05/08 at 22:37:16, jwd wrote: > > LGTM with xml change. > > > > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > > File tools/metrics/histograms/histograms.xml (right): > > > > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > > tools/metrics/histograms/histograms.xml:11856: +<histogram > name="Dialog.BubbleDialogDelegateView.Creation" > > Can you refactor these histograms using the histogram suffixes. You can do > this using ordering="prefix". More info about suffixes is at the top of this > file. This is just a change to the XML. > > I made this change, but it was not as easy as just changing the xml. > > The existing metric Dialog.Creation uses the enum DialogName, but for all of the > other Dialog.*.Creation metrics we need to use the enum BooleanCreated. I > couldn't see a way of doing this using histogram_suffixes. > > So I made a new histogram called Dialog.Create (instead of Creation) and then > made Dialog.DelegateView.Create and Dialog.BubbleDialogDelegateView.Create using > histogram_suffixes. This meant I had to change the metric in the code from > *.Creation to *.Create. Ah, shoot, I hadn't thought about the enum for Dialog.Creation. > > Dialog.Delegate.Creation is now the odd one out. To be consistent it should be > Dialog.Delegate.Create, but as Dialog.Delegate.Creation already exists, we would > need to deprecate that (in another cl). Please, let me know if we should do that > or leave Dialog.Delegate.Creation is as it. Unfortunately, I think we should move it to the consistent name since it landed in M60, which hasn't branched yet, so it doesn't cause a big analysis headache. > > I also got a warning when uploading that the histogram names > Dialog.BubbleDialogDelegateView.Create and Dialog.DelegateView.Create have no > match is histograms.xml. I think I did it correctly, but am cautious as I got > the warning. It does look fine. Turns out the presubmit is not very clever, and doesn't check this. The histograms.xml can always be fixed later if there are problems.
Still LGTM
On 2017/05/09 at 20:17:15, jwd wrote: > On 2017/05/09 04:24:15, pdyson wrote: > > On 2017/05/08 at 22:37:16, jwd wrote: > > > LGTM with xml change. > > > > > > > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > > > File tools/metrics/histograms/histograms.xml (right): > > > > > > > > https://codereview.chromium.org/2867683002/diff/1/tools/metrics/histograms/hi... > > > tools/metrics/histograms/histograms.xml:11856: +<histogram > > name="Dialog.BubbleDialogDelegateView.Creation" > > > Can you refactor these histograms using the histogram suffixes. You can do > > this using ordering="prefix". More info about suffixes is at the top of this > > file. This is just a change to the XML. > > > > I made this change, but it was not as easy as just changing the xml. > > > > The existing metric Dialog.Creation uses the enum DialogName, but for all of the > > other Dialog.*.Creation metrics we need to use the enum BooleanCreated. I > > couldn't see a way of doing this using histogram_suffixes. > > > > So I made a new histogram called Dialog.Create (instead of Creation) and then > > made Dialog.DelegateView.Create and Dialog.BubbleDialogDelegateView.Create using > > histogram_suffixes. This meant I had to change the metric in the code from > > *.Creation to *.Create. > Ah, shoot, I hadn't thought about the enum for Dialog.Creation. > > > > Dialog.Delegate.Creation is now the odd one out. To be consistent it should be > > Dialog.Delegate.Create, but as Dialog.Delegate.Creation already exists, we would > > need to deprecate that (in another cl). Please, let me know if we should do that > > or leave Dialog.Delegate.Creation is as it. > Unfortunately, I think we should move it to the consistent name since it landed in M60, which hasn't branched yet, so it doesn't cause a big analysis headache. Ok. I'll fix this in another CL. > > > > I also got a warning when uploading that the histogram names > > Dialog.BubbleDialogDelegateView.Create and Dialog.DelegateView.Create have no > > match is histograms.xml. I think I did it correctly, but am cautious as I got > > the warning. > It does look fine. Turns out the presubmit is not very clever, and doesn't check this. The histograms.xml can always be fixed later if there are problems.
pdyson@chromium.org changed reviewers: + msw@chromium.org
Mike, I'm ready for you to take a look at this now.
https://codereview.chromium.org/2867683002/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2867683002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:11858: + <summary>Counts the number times dialog boxes are created.</summary> I think we need to get more specific here... you have two or three fairly closely related metrics and it's not clear to casual observers how they are related (overlap, comparison, etc.) For example, BubbleDialogDelegateView is-a DialogDelegateView, and DialogDelegateView is-a DialogDelegate, so you'll record all three creat[e|ion] metrics for one BubbleDialogDelegateView instantiation, and you'll record both DialogDelegateView and DialogDelegate for one non-bubble DialogDelegateView instantiation, right? This seems broken. https://codereview.chromium.org/2867683002/diff/20001/ui/views/window/dialog_... File ui/views/window/dialog_delegate.cc (right): https://codereview.chromium.org/2867683002/diff/20001/ui/views/window/dialog_... ui/views/window/dialog_delegate.cc:36: UMA_HISTOGRAM_BOOLEAN("Dialog.Delegate.Creation", true); nit: maybe this should be Dialog.DialogDelegate.Create (or Creation)? https://codereview.chromium.org/2867683002/diff/20001/ui/views/window/dialog_... ui/views/window/dialog_delegate.cc:242: UMA_HISTOGRAM_BOOLEAN("Dialog.DelegateView.Create", true); nit: maybe this should be Dialog.DialogDelegateView.Create?
https://codereview.chromium.org/2867683002/diff/20001/tools/metrics/histogram... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2867683002/diff/20001/tools/metrics/histogram... tools/metrics/histograms/histograms.xml:11858: + <summary>Counts the number times dialog boxes are created.</summary> On 2017/05/11 at 00:54:39, msw wrote: > I think we need to get more specific here... you have two or three fairly closely related metrics and it's not clear to casual observers how they are related (overlap, comparison, etc.) For example, BubbleDialogDelegateView is-a DialogDelegateView, and DialogDelegateView is-a DialogDelegate, so you'll record all three creat[e|ion] metrics for one BubbleDialogDelegateView instantiation, and you'll record both DialogDelegateView and DialogDelegate for one non-bubble DialogDelegateView instantiation, right? This seems broken. I've added to the comments here and below to make this clearer. We have found a very large gap between the number of dialogs that we are counting specifically in Dialog.Creation and the overall number in Dialog.Delegate.Creation. So we will start counting the classes in between to see where the discrepancy might lie. There is also another cl coming where we count many more specific child classes. This current cl will allow us to see where the gaps are more precisely. https://codereview.chromium.org/2867683002/diff/20001/ui/views/window/dialog_... File ui/views/window/dialog_delegate.cc (right): https://codereview.chromium.org/2867683002/diff/20001/ui/views/window/dialog_... ui/views/window/dialog_delegate.cc:242: UMA_HISTOGRAM_BOOLEAN("Dialog.DelegateView.Create", true); On 2017/05/11 at 00:54:40, msw wrote: > nit: maybe this should be Dialog.DialogDelegateView.Create? Done. I have another cl to change Dialog.Delegate.Creation to be of the form Dialog.*.Create. So I'll make that Dialog.DialogDelegate.Create so this is all consistent.
The CQ bit was checked by pdyson@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.
lgtm
The CQ bit was checked by pdyson@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jwd@chromium.org Link to the patchset: https://codereview.chromium.org/2867683002/#ps30001 (title: "Expand descriptions.")
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": 30001, "attempt_start_ts": 1494547277472160, "parent_rev": "9601a9bbabcf3aad7d64f0d192561dc80dd374c2", "commit_rev": "fe27ed665852a667acdba62f8a77a1d9969170da"}
Message was sent while issue was closed.
Description was changed from ========== Log the creation of dialog boxes using DialogDelegateView and BubbleDialogDelegateView. BUG=705331 ========== to ========== Log the creation of dialog boxes using DialogDelegateView and BubbleDialogDelegateView. BUG=705331 Review-Url: https://codereview.chromium.org/2867683002 Cr-Commit-Position: refs/heads/master@{#471137} Committed: https://chromium.googlesource.com/chromium/src/+/fe27ed665852a667acdba62f8a77... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:30001) as https://chromium.googlesource.com/chromium/src/+/fe27ed665852a667acdba62f8a77... |