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

Side by Side Diff: net/disk_cache/stats.cc

Issue 27345: New disk cache eviction algorithm. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/stats.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/disk_cache/stats.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698