New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 611341 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 1
Type: Bug-Regression


Sign in to add a comment

Fix and cleanup desktop NTP UMA

Project Member Reported by treib@chromium.org, May 12 2016

Issue description

A number of "NTP events" are defined in chrome/common/ntp_logging_events.h. Many of these are only recorded by the old, multi-iframe NTP - compare most_visited_title.js+most_visited_thumbnail.js (old) vs. most_visited_single.js (new).
As a result, many of the UMA histograms don't have useful data. We should either port all of this to the single-iframe version, or remove/deprecate the now-unused histograms.

(sort-of followup to  issue 539974 )
 

Comment 1 by jkrcal@chromium.org, May 12 2016

Cc: -jkrcal@chromium.org
Owner: jkrcal@chromium.org

Comment 2 by jkrcal@chromium.org, May 12 2016

Status: Assigned (was: Available)

Comment 3 by treib@chromium.org, Jun 8 2016

Components: UI>Browser>NewTabPage
Labels: -Pri-3 Pri-1
Summary: Fix and cleanup desktop NTP UMA (was: Cleanup desktop NTP UMA)
Increasing prio, as it turns out lots of things are still broken, so we're blind to a bunch of potential issues. In particular, https://codereview.chromium.org/1396143002 messed up the client-side vs server-side detection, which broke (non-exhaustive list):
- NewTabPage.SuggestionsType
- NewTabPage.LoadTime.MostLikely

Comment 4 by treib@chromium.org, Jun 8 2016

Cc: sfiera@chromium.org

Comment 5 by treib@chromium.org, Jun 8 2016

Once we have the ntp_tiles component, and we're also using it on the desktop NTP, all the UMA recording should happen there.

Comment 6 by treib@chromium.org, Jun 8 2016

Labels: zine-ntp-pe Hotlist-Fixit-PE2016
Fixit candidate :)
Labels: -Type-Bug M-53 Type-Bug-Regression
Given the amount of blindness this causes, this is definitely a high priority now. Once fixed we should even check out merge options to older branches.

Comment 8 by treib@chromium.org, Jun 8 2016

IMO it's not really a regression, or at least not a recent one - the NTP UMA has been (slightly different variants of) broken for at least a year. The offending CL above landed 6 months ago, and things were already broken before that.

I agree it's a high priority, but IMO this needs a major restructuring - "point fixes" for the known-broken things obviously don't work. As such, it won't be a good candidate for merges.
Owner: sfiera@chromium.org
Whatever we can do to fix the emission of data in M53, we should do it. Once we found a mitigation, we should decide if it's possible to merge it back to M52. It's really bad for us to be blind until September (M53 launch timeframe).

It's a regression, just one we caught very late and might have inherited.

Chris, thanks for taking a look!
I've been reading through the code and I feel like I'm starting to understand the various paths that are supposed to be used, but without a better understanding of what the breakage is, I can't identify the problem.

The difference in most_visited_single.js doesn't appear to be relevant, since the stats are (supposed to be?) updated through search_tab_helper.cc without going through the HTML/JS at all.

On the other hand, the "flush" behavior in NTPUserDataLogger::LogEvent() looks weird, and so does load_time_.
I think right now, the stats are "supposed to be" updated from both SearchTabHelper and most_visited_single.js, hence the most recent breakage.

Before Jan's recent CL, SearchTabHelper was supposed to do the logging, but it's not the right place (yet), because it doesn't know about MostLikely, only about TopSites.
There's still no actual description of the breakage here. No data? Partial data? Duplicate data? Garbage data?

SearchTabHelper doesn't know about MostLikely? Isn't that what's being tested here:
https://cs.chromium.org/chromium/src/chrome/browser/ui/search/search_tab_helper.cc?l=399
based on a value from from InstantService:
https://cs.chromium.org/chromium/src/chrome/browser/search/instant_service.cc?l=326
in a callback invoked by the suggestions service, which provides MostLikely data?
Breakage:
NewTabPage.LoadTime.MostLikely contains no data. NewTabPage.SuggestionsType always says "client" (same underlying problem).
There's quite possibly more breakage that I'm not aware of yet.

The problem is that the SuggestionsService (as used in InstantService) isn't actually active; it's behind a field trial that was never launched.
As far as the specific metrics in question, is http://crrev.com/390621 not sufficient to make them show up again? Is that something that could be merged to M52, or was it early enough (1.5mo ago) that that isn't necessary?

Comment 15 by treib@chromium.org, Jun 13 2016

...maaybe? It looks like NewTabPage.LoadTime.MostLikely is being recorded again since M53, but the numbers don't quite add up - NewTabPage.LoadTime.MostLikely+NewTabPage.LoadTime.MostVisited have fewer samples than NewTabPage.SuggestionsType. Maybe there's a reason for that; I'm not sure when exactly all of these are recorded.

I suspect that some of the metrics might get recorded multiple times per NTP load due to the weird flushing behavior. It's also possible that everything is working as intended now, but that needs to be verified - right now I don't really trust any of these metrics.

You can see the state of all histograms in about:histograms - that should be good enough to sanity check things at least.
Owner: ----
Status: Available (was: Assigned)
No longer blocked on other things, and not working on this.
Cc: jkrcal@chromium.org
Blockedon: 625153
Blockedon: 625154
Blockedon: 625161
Blockedon: 625163
Owner: treib@chromium.org
Status: Assigned (was: Available)
Status: Started (was: Assigned)
Blockedon: 625990
Project Member

Comment 26 by bugdroid1@chromium.org, Jul 8 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c7c5c817f22c6785a44a681bc562d05c6c4646d0

commit c7c5c817f22c6785a44a681bc562d05c6c4646d0
Author: sfiera <sfiera@chromium.org>
Date: Fri Jul 08 14:15:40 2016

Kill NewTabPage.NumberOfMouseOvers.

It's not clear what it would mean for the behavior to be correct, let
alone whether it actually is.

BUG= 611341 
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2091323002
Cr-Commit-Position: refs/heads/master@{#404362}

[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/resources/local_ntp/most_visited_single.js
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/resources/local_ntp/most_visited_util.js
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/search/search_ipc_router_unittest.cc
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/webui/metrics_handler.cc
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/webui/metrics_handler.h
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/webui/ntp/ntp_user_data_logger.cc
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/browser/ui/webui/ntp/ntp_user_data_logger_unittest.cc
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/chrome/common/search/ntp_logging_events.h
[modify] https://crrev.com/c7c5c817f22c6785a44a681bc562d05c6c4646d0/tools/metrics/histograms/histograms.xml

Project Member

Comment 27 by sheriffbot@chromium.org, Jul 10 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 28 by treib@chromium.org, Jul 11 2016

Labels: zine-16-07-04 zine-16-07-11

Comment 29 by treib@chromium.org, Jul 11 2016

Blockedon: 626681
Project Member

Comment 30 by bugdroid1@chromium.org, Jul 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7668db462821887491792b20435d9bab1d749da1

commit 7668db462821887491792b20435d9bab1d749da1
Author: treib <treib@chromium.org>
Date: Wed Jul 13 16:59:51 2016

Add NewTabPage.TileType and .TileTypeClicked on Android

There already are versions of these split by tile source, but the accumulated totals weren't there.

BUG= 611341 

Review-Url: https://codereview.chromium.org/2131133003
Cr-Commit-Position: refs/heads/master@{#405199}

[modify] https://crrev.com/7668db462821887491792b20435d9bab1d749da1/components/ntp_tiles/most_visited_sites.cc

Comment 31 by treib@chromium.org, Jul 15 2016

Status: Fixed (was: Started)

Sign in to add a comment