| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "net/disk_cache/stats.h" | 5 #include "net/disk_cache/stats.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "net/disk_cache/backend_impl.h" | 9 #include "net/disk_cache/backend_impl.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 return static_cast<int>(result); | 35 return static_cast<int>(result); |
| 36 } | 36 } |
| 37 | 37 |
| 38 static const char* kCounterNames[] = { | 38 static const char* kCounterNames[] = { |
| 39 "Open miss", | 39 "Open miss", |
| 40 "Open hit", | 40 "Open hit", |
| 41 "Create miss", | 41 "Create miss", |
| 42 "Create hit", | 42 "Create hit", |
| 43 "Resurrect hit", |
| 43 "Create error", | 44 "Create error", |
| 44 "Trim entry", | 45 "Trim entry", |
| 45 "Doom entry", | 46 "Doom entry", |
| 46 "Doom cache", | 47 "Doom cache", |
| 47 "Invalid entry", | 48 "Invalid entry", |
| 48 "Open entries", | 49 "Open entries", |
| 49 "Max entries", | 50 "Max entries", |
| 50 "Timer", | 51 "Timer", |
| 51 "Read data", | 52 "Read data", |
| 52 "Write data", | 53 "Write data", |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 261 } |
| 261 | 262 |
| 262 for (int i = MIN_COUNTER + 1; i < MAX_COUNTER; i++) { | 263 for (int i = MIN_COUNTER + 1; i < MAX_COUNTER; i++) { |
| 263 item.first = kCounterNames[i]; | 264 item.first = kCounterNames[i]; |
| 264 item.second = StringPrintf("0x%I64x", counters_[i]); | 265 item.second = StringPrintf("0x%I64x", counters_[i]); |
| 265 items->push_back(item); | 266 items->push_back(item); |
| 266 } | 267 } |
| 267 } | 268 } |
| 268 | 269 |
| 269 } // namespace disk_cache | 270 } // namespace disk_cache |
| OLD | NEW |