OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "webkit/browser/appcache/appcache_histograms.h" | 5 #include "webkit/browser/appcache/appcache_histograms.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 | 8 |
9 namespace appcache { | 9 namespace appcache { |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 UMA_HISTOGRAM_BOOLEAN("appcache.CorruptionDetected", true); | 22 UMA_HISTOGRAM_BOOLEAN("appcache.CorruptionDetected", true); |
23 } | 23 } |
24 | 24 |
25 void AppCacheHistograms::CountCheckResponseResult( | 25 void AppCacheHistograms::CountCheckResponseResult( |
26 CheckResponseResultType result) { | 26 CheckResponseResultType result) { |
27 UMA_HISTOGRAM_ENUMERATION( | 27 UMA_HISTOGRAM_ENUMERATION( |
28 "appcache.CheckResponseResult", | 28 "appcache.CheckResponseResult", |
29 result, NUM_CHECK_RESPONSE_RESULT_TYPES); | 29 result, NUM_CHECK_RESPONSE_RESULT_TYPES); |
30 } | 30 } |
31 | 31 |
| 32 void AppCacheHistograms::CountUpdateJobResult( |
| 33 AppCacheUpdateJob::ResultType result) { |
| 34 UMA_HISTOGRAM_ENUMERATION( |
| 35 "appcache.UpdateJobResult", |
| 36 result, AppCacheUpdateJob::NUM_UPDATE_JOB_RESULT_TYPES); |
| 37 } |
| 38 |
32 void AppCacheHistograms::AddTaskQueueTimeSample( | 39 void AppCacheHistograms::AddTaskQueueTimeSample( |
33 const base::TimeDelta& duration) { | 40 const base::TimeDelta& duration) { |
34 UMA_HISTOGRAM_TIMES("appcache.TaskQueueTime", duration); | 41 UMA_HISTOGRAM_TIMES("appcache.TaskQueueTime", duration); |
35 } | 42 } |
36 | 43 |
37 void AppCacheHistograms::AddTaskRunTimeSample( | 44 void AppCacheHistograms::AddTaskRunTimeSample( |
38 const base::TimeDelta& duration) { | 45 const base::TimeDelta& duration) { |
39 UMA_HISTOGRAM_TIMES("appcache.TaskRunTime", duration); | 46 UMA_HISTOGRAM_TIMES("appcache.TaskRunTime", duration); |
40 } | 47 } |
41 | 48 |
(...skipping 27 matching lines...) Expand all Loading... |
69 } | 76 } |
70 | 77 |
71 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( | 78 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( |
72 MissingManifestCallsiteType callsite) { | 79 MissingManifestCallsiteType callsite) { |
73 UMA_HISTOGRAM_ENUMERATION( | 80 UMA_HISTOGRAM_ENUMERATION( |
74 "appcache.MissingManifestDetectedAtCallsite", | 81 "appcache.MissingManifestDetectedAtCallsite", |
75 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); | 82 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); |
76 } | 83 } |
77 | 84 |
78 } // namespace appcache | 85 } // namespace appcache |
OLD | NEW |