|
|
Created:
6 years, 4 months ago by manzagop (departed) Modified:
6 years, 4 months ago CC:
chromium-reviews, asvitkine+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Project:
chromium Visibility:
Public. |
DescriptionClean up histogram.xml metric definitions.
These metrics were never logged.
BUG=341765
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290958
Patch Set 1 #
Total comments: 8
Patch Set 2 : Address Donn's comments of patch set 1. #Patch Set 3 : Relocate to internal. #
Total comments: 1
Messages
Total messages: 25 (0 generated)
Hi guys! This cl introduces the xml changes for the contextual search histograms. Please have a look. Thanks, Pierre
Looking quite good! Just a few questions, and I'd like other reviewers to look too. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28273: + The details (origin state and reason) of the first entry into the closed Nit: "origin state" seems awkward, maybe just say "previous state" instead? https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28354: + search that started with the first run flow. This is confusing to me because it sounds like it only logs the exit when the user says yes, otherwise there wouldn't be a search. But I would think we'd want to log the state of the preference after the user made any decision to opt-in or opt-out. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28363: + The state of the Contextual Search Preference. Can be logged multiple times. It's great that this can be logged multiple times! I presume there's some de-dupe logic? I know it's not from this CL but can you explain how that works? https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28373: + The Contextual Search preference state after a modification from the the Typo "the the"
Addressed comments. PTAL. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28273: + The details (origin state and reason) of the first entry into the closed On 2014/08/19 16:55:10, Donn wrote: > Nit: "origin state" seems awkward, maybe just say "previous state" instead? Done. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28354: + search that started with the first run flow. On 2014/08/19 16:55:10, Donn wrote: > This is confusing to me because it sounds like it only logs the exit when the > user says yes, otherwise there wouldn't be a search. But I would think we'd > want to log the state of the preference after the user made any decision to > opt-in or opt-out. Done. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28363: + The state of the Contextual Search Preference. Can be logged multiple times. On 2014/08/19 16:55:10, Donn wrote: > It's great that this can be logged multiple times! I presume there's some > de-dupe logic? I know it's not from this CL but can you explain how that works? This is something that UMA provides (the number of users that appear in a given histogram bin). I mention it here to ensure people looking at this know they should use the "user" view, not the default raw event count view. https://codereview.chromium.org/486303004/diff/1/tools/metrics/histograms/his... tools/metrics/histograms/histograms.xml:28373: + The Contextual Search preference state after a modification from the the On 2014/08/19 16:55:10, Donn wrote: > Typo "the the" Done.
Thanks for explaining the user-view! LGTM, but I'd like Mathieu or Pedro to review too.
+asvitkine Alexei's probably going to want to see your client code exercising this, so perhaps include change numbers in the description.
On 2014/08/19 17:53:46, Mathieu Perreault wrote: > +asvitkine > > Alexei's probably going to want to see your client code exercising this, so > perhaps include change numbers in the description. Done.
If these histograms are implemented in the internal repo, would it make more sense to add them to the google3 version of histograms.xml?
lgtm
Ok, will relocate them. On Tue, Aug 19, 2014 at 2:33 PM, <pedrosimonetti@chromium.org> wrote: > lgtm > > > > https://codereview.chromium.org/486303004/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
On 2014/08/19 18:58:18, manzagop wrote: > Ok, will relocate them. > > > On Tue, Aug 19, 2014 at 2:33 PM, <mailto:pedrosimonetti@chromium.org> wrote: > > > lgtm > > > > > > > > https://codereview.chromium.org/486303004/ > > > > To unsubscribe from this group and stop receiving emails from it, send an email > to mailto:chromium-reviews+unsubscribe@chromium.org. Changed this CL to a cleanup one. Please have another look!
https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... tools/metrics/histograms/histograms.xml:28244: -<histogram name="Search.ContextualSearchOptPeekCard" I don't see these being added in another CL to the internal file. Please don't delete existing histograms definitions (unless we never ever saw any data for them - e.g. the corresponding code didn't exist or wasn't hit). Instead, the best practice is to mark them as <obsolete> in the file. In this case, since they're moving to the internal file, you can first move them offer (i.e. with a corresponding google3 CL that re-adds these) and then in a follow-up CL, annotate the ones that are obsolete as such.
On 2014/08/20 14:42:43, Alexei Svitkine wrote: > https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... > File tools/metrics/histograms/histograms.xml (left): > > https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... > tools/metrics/histograms/histograms.xml:28244: -<histogram > name="Search.ContextualSearchOptPeekCard" > I don't see these being added in another CL to the internal file. > > Please don't delete existing histograms definitions (unless we never ever saw > any data for them - e.g. the corresponding code didn't exist or wasn't hit). > > Instead, the best practice is to mark them as <obsolete> in the file. > > In this case, since they're moving to the internal file, you can first move them > offer (i.e. with a corresponding google3 CL that re-adds these) and then in a > follow-up CL, annotate the ones that are obsolete as such. Pedro: was data ever logged for these histograms?
On 2014/08/20 14:51:44, manzagop wrote: > On 2014/08/20 14:42:43, Alexei Svitkine wrote: > > > https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... > > File tools/metrics/histograms/histograms.xml (left): > > > > > https://codereview.chromium.org/486303004/diff/40001/tools/metrics/histograms... > > tools/metrics/histograms/histograms.xml:28244: -<histogram > > name="Search.ContextualSearchOptPeekCard" > > I don't see these being added in another CL to the internal file. > > > > Please don't delete existing histograms definitions (unless we never ever saw > > any data for them - e.g. the corresponding code didn't exist or wasn't hit). > > > > Instead, the best practice is to mark them as <obsolete> in the file. > > > > In this case, since they're moving to the internal file, you can first move > them > > offer (i.e. with a corresponding google3 CL that re-adds these) and then in a > > follow-up CL, annotate the ones that are obsolete as such. > > Pedro: was data ever logged for these histograms? I don't think so. We've created them for a simplified JavaScript prototype, but soon after that we changed our plans to implement the whole feature natively.
Thanks, I checked on the dashboard and indeed see no data for them. LGTM!
Maybe expand the CL description to mention these were never logged.
On 2014/08/20 18:57:44, Alexei Svitkine wrote: > Maybe expand the CL description to mention these were never logged. Thanks for the review!
The CQ bit was checked by manzagop@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/manzagop@chromium.org/486303004/40001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tes...) win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...) win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by mathp@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/manzagop@chromium.org/486303004/40001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
Message was sent while issue was closed.
Committed patchset #3 (40001) as 290958 |