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

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

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/rankings.cc ('k') | net/disk_cache/stats.cc » ('j') | 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 #ifndef NET_DISK_CACHE_STATS_H_ 5 #ifndef NET_DISK_CACHE_STATS_H_
6 #define NET_DISK_CACHE_STATS_H_ 6 #define NET_DISK_CACHE_STATS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 // This class stores cache-specific usage information, for tunning purposes. 21 // This class stores cache-specific usage information, for tunning purposes.
22 class Stats { 22 class Stats {
23 public: 23 public:
24 static const int kDataSizesLength = 28; 24 static const int kDataSizesLength = 28;
25 enum Counters { 25 enum Counters {
26 MIN_COUNTER = 0, 26 MIN_COUNTER = 0,
27 OPEN_MISS = MIN_COUNTER, 27 OPEN_MISS = MIN_COUNTER,
28 OPEN_HIT, 28 OPEN_HIT,
29 CREATE_MISS, 29 CREATE_MISS,
30 CREATE_HIT, 30 CREATE_HIT,
31 RESURRECT_HIT,
31 CREATE_ERROR, 32 CREATE_ERROR,
32 TRIM_ENTRY, 33 TRIM_ENTRY,
33 DOOM_ENTRY, 34 DOOM_ENTRY,
34 DOOM_CACHE, 35 DOOM_CACHE,
35 INVALID_ENTRY, 36 INVALID_ENTRY,
36 OPEN_ENTRIES, // Average number of open entries. 37 OPEN_ENTRIES, // Average number of open entries.
37 MAX_ENTRIES, // Maximum number of open entries. 38 MAX_ENTRIES, // Maximum number of open entries.
38 TIMER, 39 TIMER,
39 READ_DATA, 40 READ_DATA,
40 WRITE_DATA, 41 WRITE_DATA,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int64 counters_[MAX_COUNTER]; 74 int64 counters_[MAX_COUNTER];
74 scoped_ptr<StatsHistogram> size_histogram_; 75 scoped_ptr<StatsHistogram> size_histogram_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(Stats); 77 DISALLOW_COPY_AND_ASSIGN(Stats);
77 }; 78 };
78 79
79 } // namespace disk_cache 80 } // namespace disk_cache
80 81
81 #endif // NET_DISK_CACHE_STATS_H_ 82 #endif // NET_DISK_CACHE_STATS_H_
82 83
OLDNEW
« no previous file with comments | « net/disk_cache/rankings.cc ('k') | net/disk_cache/stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698