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

Side by Side Diff: content/browser/service_worker/service_worker_metrics.h

Issue 2706923003: Add UMA for how long service workers run for. (Closed)
Patch Set: tweaks, fmt Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 EmbeddedWorkerStatus initial_worker_status, 347 EmbeddedWorkerStatus initial_worker_status,
348 StartSituation start_situation); 348 StartSituation start_situation);
349 349
350 // Records the result of trying to handle a request for a service worker 350 // Records the result of trying to handle a request for a service worker
351 // script. 351 // script.
352 static void RecordContextRequestHandlerStatus( 352 static void RecordContextRequestHandlerStatus(
353 ServiceWorkerContextRequestHandler::CreateJobStatus status, 353 ServiceWorkerContextRequestHandler::CreateJobStatus status,
354 bool is_installed, 354 bool is_installed,
355 bool is_main_script); 355 bool is_main_script);
356 356
357 static void RecordRuntime(base::TimeDelta time);
358
357 private: 359 private:
358 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics); 360 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceWorkerMetrics);
359 }; 361 };
360 362
361 } // namespace content 363 } // namespace content
362 364
363 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_ 365 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698