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

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

Issue 2626943002: Add ServiceWorker.NavigationPreload.HeaderSize UMA (Closed)
Patch Set: incorporated falken's comment Created 3 years, 11 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 #include "content/browser/service_worker/service_worker_metrics.h" 5 #include "content/browser/service_worker/service_worker_metrics.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 status, SERVICE_WORKER_ERROR_MAX_VALUE); 754 status, SERVICE_WORKER_ERROR_MAX_VALUE);
755 } else if (failure_count == 2) { 755 } else if (failure_count == 2) {
756 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.StartWorker.AfterFailureStreak_2", 756 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.StartWorker.AfterFailureStreak_2",
757 status, SERVICE_WORKER_ERROR_MAX_VALUE); 757 status, SERVICE_WORKER_ERROR_MAX_VALUE);
758 } else if (failure_count == 3) { 758 } else if (failure_count == 3) {
759 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.StartWorker.AfterFailureStreak_3", 759 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.StartWorker.AfterFailureStreak_3",
760 status, SERVICE_WORKER_ERROR_MAX_VALUE); 760 status, SERVICE_WORKER_ERROR_MAX_VALUE);
761 } 761 }
762 } 762 }
763 763
764 void ServiceWorkerMetrics::RecordNavigationPreloadRequestHeaderSize(
765 size_t size) {
766 UMA_HISTOGRAM_COUNTS_100000("ServiceWorker.NavigationPreload.HeaderSize",
767 size);
768 }
769
764 } // namespace content 770 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698