Service Worker: Add UMA for stalled in STOPPING
commit08c269eed9b81e2d4d47f105fc6040ba95a10381
authorfalken <falken@chromium.org>
Tue, 30 Jun 2015 10:54:44 +0000 (30 03:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 10:55:09 +0000 (30 10:55 +0000)
treeee6d0f074383151c40f94cd8aad719f639778475
parentec101afa1f073ded8dd97f2ff0536e421e43e58c
Service Worker: Add UMA for stalled in STOPPING

Detect when a SW is stalled in stopping, and record UMA for that case.  This
will help us understand whether the stalled in stopping bug is really fixed.

Only record the UMA for installed workers; otherwise,
workers from update jobs that are discarded immediately
would dominate the data, and they don't affect the actual
user experience.

BUG=504806,499646

Review URL: https://codereview.chromium.org/1212253003

Cr-Commit-Position: refs/heads/master@{#336760}
content/browser/service_worker/embedded_worker_instance.cc
content/browser/service_worker/embedded_worker_instance.h
content/browser/service_worker/embedded_worker_registry.cc
content/browser/service_worker/service_worker_metrics.cc
content/browser/service_worker/service_worker_metrics.h
content/browser/service_worker/service_worker_version.cc
content/browser/service_worker/service_worker_version.h
tools/metrics/histograms/histograms.xml