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

Unified Diff: content/browser/service_worker/service_worker_metrics.h

Issue 2039743003: Introduce ServiceWorker.ActivatedWorkerPreparationForMainFrame.Time UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_metrics.h
diff --git a/content/browser/service_worker/service_worker_metrics.h b/content/browser/service_worker/service_worker_metrics.h
index aca36c9e351e3bebeceacdef260a0b22e1c7df25..9be6cdb4a5147ff15ca6a9d2c40d4e7da42ee362 100644
--- a/content/browser/service_worker/service_worker_metrics.h
+++ b/content/browser/service_worker/service_worker_metrics.h
@@ -16,6 +16,8 @@ class GURL;
namespace content {
+enum class EmbeddedWorkerStatus;
+
class ServiceWorkerMetrics {
public:
// Used for UMA. Append-only.
@@ -161,6 +163,13 @@ class ServiceWorkerMetrics {
StartSituation start_situation,
EventType purpose);
+ // Records the time taken to prepare an activated Service Worker for a main
+ // frame fetch.
+ static void RecordActivatedWorkerPreparationTimeForMainFrame(
+ base::TimeDelta time,
+ EmbeddedWorkerStatus initial_worker_status,
+ StartSituation start_situation);
+
// Records the result of trying to stop a worker.
static void RecordWorkerStopped(StopStatus status);

Powered by Google App Engine
This is Rietveld 408576698