| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |