OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/download/download_stats.h" | 5 #include "content/browser/download/download_stats.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "content/browser/download/interrupt_reasons.h" | 9 #include "content/browser/download/interrupt_reasons.h" |
10 | 10 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
223 } | 223 } |
224 | 224 |
225 void RecordOpensOutstanding(int size) { | 225 void RecordOpensOutstanding(int size) { |
226 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding", | 226 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding", |
227 size, | 227 size, |
228 0/*min*/, | 228 0/*min*/, |
229 (1 << 10)/*max*/, | 229 (1 << 10)/*max*/, |
230 64/*num_buckets*/); | 230 64/*num_buckets*/); |
231 } | 231 } |
232 | 232 |
233 void RecordOnChanged(int percent) { | |
234 UMA_HISTOGRAM_PERCENTAGE("Download.OnChanged", percent); | |
Randy Smith (Not in Mondays)
2011/10/18 21:15:32
I'd make this name a bit more detailed (Substantiv
| |
235 } | |
236 | |
233 } // namespace download_stats | 237 } // namespace download_stats |
OLD | NEW |