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

Issue 2651883006: Add histograms for time to parse start for service worker controlled pages. (Closed)

Created:
3 years, 11 months ago by Bryan McQuade
Modified:
3 years, 10 months ago
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add histograms for time to parse start for service worker controlled pages. Service worker controlled pages should drive time to parse start down to near zero. This change allows us to track the actual latency. Additionally, this will allow us to improve the service worker stats UMA, where we currently compute the percentage of page loads controlled by SW using UMA sourced from different parts of the code in numerator and denominator. BUG=684561 Review-Url: https://codereview.chromium.org/2651883006 Cr-Commit-Position: refs/heads/master@{#446838} Committed: https://chromium.googlesource.com/chromium/src/+/b9c7574d2f2d7baaf78d42c5db8068fed0081145

Patch Set 1 #

Patch Set 2 : update histograms.xml #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -0 lines) Patch
M chrome/browser/page_load_metrics/observers/service_worker_page_load_metrics_observer.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/service_worker_page_load_metrics_observer.cc View 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/service_worker_page_load_metrics_observer_unittest.cc View 4 chunks +11 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (20 generated)
Bryan McQuade
csharrison, PTAL for observer changes holte, PTAL for histograms.xml thanks!
3 years, 11 months ago (2017-01-26 23:57:04 UTC) #17
Bryan McQuade
csharrison, one note: though we've mostly stopped using background histograms, we do need one in ...
3 years, 11 months ago (2017-01-26 23:58:43 UTC) #18
Charlie Harrison
That's fine by me
3 years, 11 months ago (2017-01-27 00:25:45 UTC) #20
Steven Holte
histograms lgtm
3 years, 10 months ago (2017-01-27 20:52:37 UTC) #21
Charlie Harrison
LGTM
3 years, 10 months ago (2017-01-27 21:03:18 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2651883006/40001
3 years, 10 months ago (2017-01-27 22:18:36 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b9c7574d2f2d7baaf78d42c5db8068fed0081145
3 years, 10 months ago (2017-01-27 23:51:47 UTC) #27
Nico
Looks like this broke tests on https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29?numbuilds=200 : https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%281%29/builds/56889/steps/unit_tests/logs/ServiceWorkerPageLoadMetricsObserverTest.WithServiceWorkerBackground [ RUN ] ServiceWorkerPageLoadMetricsObserverTest.WithServiceWorkerBackground c:\c\win\srcase est\histogram_tester.cc(72): ...
3 years, 10 months ago (2017-01-28 16:57:48 UTC) #28
Bryan McQuade
3 years, 10 months ago (2017-01-29 22:39:00 UTC) #29
Message was sent while issue was closed.
On 2017/01/28 at 16:57:48, thakis wrote:
> Looks like this broke tests on
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2...
:
> 
>
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2...
> 
> [ RUN      ]
ServiceWorkerPageLoadMetricsObserverTest.WithServiceWorkerBackground
> c:\c\win\srcase	est\histogram_tester.cc(72): error: Value of: 0
> Expected: count
> Which is: 1
> Histogram
"PageLoad.Clients.ServiceWorker.ParseTiming.NavigationToParseStart.Background"
does not exist.
> [  FAILED  ]
ServiceWorkerPageLoadMetricsObserverTest.WithServiceWorkerBackground (357 ms)
> 
> I'd revert, but rietveld says "file too large" – guess histogram.xml changes
can't be reverted through rietveld any longer :-( Please revert manually, and
then fix.

Thanks. I'm working on landing a change to disable the single failing assertion
for the time being. Should land shortly.

Powered by Google App Engine
This is Rietveld 408576698