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

Issue 1178043002: Update ServiceWorker event handled status histogram (Closed)

Created:
5 years, 6 months ago by kinuko
Modified:
5 years, 5 months ago
Reviewers:
falken, Ilya Sherman
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, asvitkine+watch_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update ServiceWorker event handled status histogram Currently ServiceWorker.UnhandledEventRatio is a bit noisy and not very informative. This CL changes the UMA as following: - Simplify per-worker event handled status. Probably we don't need to record the handled ratio in percentage, but just record status in some buckets (e.g. 'all events' or 'no events' are handled etc) would be enough. - Reset the metrics when the SW's stopped, so that the metrics won't be skewed by the lifetime of versions. - Exclude ServiceWorker stats for NTP like scope, as it tends to dominate the stats and make the resutls largely skewed. BUG=483354 TEST=(manually tested locally with chrome://histograms) Committed: https://crrev.com/7a488959b8dc39bc610ce0dbd736a20de96786e3 Cr-Commit-Position: refs/heads/master@{#337576}

Patch Set 1 #

Total comments: 2

Patch Set 2 : per-event metrics, exclude NTP etc #

Total comments: 8

Patch Set 3 : #

Total comments: 4

Patch Set 4 : addressed comments #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -17 lines) Patch
M content/browser/service_worker/service_worker_metrics.h View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
M content/browser/service_worker/service_worker_metrics.cc View 1 2 3 3 chunks +34 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 7 chunks +25 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
kinuko
I suspected the way I record the event handled status might be wrong, but it ...
5 years, 6 months ago (2015-06-11 08:47:44 UTC) #2
falken
Would it make sense to have separate histograms for each event type, like FetchEventHandledStatus vs ...
5 years, 6 months ago (2015-06-12 05:50:29 UTC) #3
kinuko
(Reviving this old patch) Updated. PTAL https://codereview.chromium.org/1178043002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1178043002/diff/1/tools/metrics/histograms/histograms.xml#oldcode37227 tools/metrics/histograms/histograms.xml:37227: -<histogram name="ServiceWorker.UnhandledEventRatio" units="percent"> ...
5 years, 6 months ago (2015-06-25 08:02:22 UTC) #4
falken
This looks good but... I'm wondering what's causing the difference between the current histogram and ...
5 years, 6 months ago (2015-06-25 09:31:39 UTC) #5
kinuko
On 2015/06/25 09:31:39, falken wrote: > This looks good but... I'm wondering what's causing the ...
5 years, 5 months ago (2015-06-29 05:17:37 UTC) #6
kinuko
Updated. After having some discussion not entirely sure if we want this UMA, if not ...
5 years, 5 months ago (2015-07-02 14:27:26 UTC) #10
falken
lgtm I'm not totally sure of how to handle the NTP issue. Another approach is ...
5 years, 5 months ago (2015-07-03 04:45:00 UTC) #11
kinuko
Updated, thanks. I'm not fully sure how we should handle NTP values either yet.. as ...
5 years, 5 months ago (2015-07-05 09:19:04 UTC) #12
kinuko
isherman@ could you review for histogram change?
5 years, 5 months ago (2015-07-05 09:22:43 UTC) #14
Ilya Sherman
LGTM % nits: https://codereview.chromium.org/1178043002/diff/110001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1178043002/diff/110001/tools/metrics/histograms/histograms.xml#newcode37516 tools/metrics/histograms/histograms.xml:37516: + Records how much of fetch ...
5 years, 5 months ago (2015-07-06 18:44:51 UTC) #15
kinuko
Thanks! https://codereview.chromium.org/1178043002/diff/110001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1178043002/diff/110001/tools/metrics/histograms/histograms.xml#newcode37516 tools/metrics/histograms/histograms.xml:37516: + Records how much of fetch events are ...
5 years, 5 months ago (2015-07-07 08:31:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1178043002/130001
5 years, 5 months ago (2015-07-07 08:33:58 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:130001)
5 years, 5 months ago (2015-07-07 09:50:40 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-07-07 09:51:37 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7a488959b8dc39bc610ce0dbd736a20de96786e3
Cr-Commit-Position: refs/heads/master@{#337576}

Powered by Google App Engine
This is Rietveld 408576698