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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BLOCKFILE_STATS_H_ 5 #ifndef NET_DISK_CACHE_BLOCKFILE_STATS_H_
6 #define NET_DISK_CACHE_BLOCKFILE_STATS_H_ 6 #define NET_DISK_CACHE_BLOCKFILE_STATS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 OPEN_HIT, 30 OPEN_HIT,
31 CREATE_MISS, 31 CREATE_MISS,
32 CREATE_HIT, 32 CREATE_HIT,
33 RESURRECT_HIT, 33 RESURRECT_HIT,
34 CREATE_ERROR, 34 CREATE_ERROR,
35 TRIM_ENTRY, 35 TRIM_ENTRY,
36 DOOM_ENTRY, 36 DOOM_ENTRY,
37 DOOM_CACHE, 37 DOOM_CACHE,
38 INVALID_ENTRY, 38 INVALID_ENTRY,
39 OPEN_ENTRIES, // Average number of open entries. 39 OPEN_ENTRIES, // Average number of open entries.
40 MAX_ENTRIES, // Maximum number of open entries. 40 MAX_ENTRIES, // Maximum number of open entries.
41 TIMER, 41 TIMER,
42 READ_DATA, 42 READ_DATA,
43 WRITE_DATA, 43 WRITE_DATA,
44 OPEN_RANKINGS, // An entry has to be read just to modify rankings. 44 OPEN_RANKINGS, // An entry has to be read just to modify rankings.
45 GET_RANKINGS, // We got the ranking info without reading the whole entry. 45 GET_RANKINGS, // We got the ranking info without reading the whole entry.
46 FATAL_ERROR, 46 FATAL_ERROR,
47 LAST_REPORT, // Time of the last time we sent a report. 47 LAST_REPORT, // Time of the last time we sent a report.
48 LAST_REPORT_TIMER, // Timer count of the last time we sent a report. 48 LAST_REPORT_TIMER, // Timer count of the last time we sent a report.
49 DOOM_RECENT, // The cache was partially cleared. 49 DOOM_RECENT, // The cache was partially cleared.
50 UNUSED, // Was: ga.js was evicted from the cache. 50 UNUSED, // Was: ga.js was evicted from the cache.
51 MAX_COUNTER 51 MAX_COUNTER
52 }; 52 };
53 53
54 Stats(); 54 Stats();
55 ~Stats(); 55 ~Stats();
56 56
57 // Initializes this object with |data| from disk. 57 // Initializes this object with |data| from disk.
58 bool Init(void* data, int num_bytes, Addr address); 58 bool Init(void* data, int num_bytes, Addr address);
59 59
60 // Generates a size distribution histogram. 60 // Generates a size distribution histogram.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int data_sizes_[kDataSizesLength]; 96 int data_sizes_[kDataSizesLength];
97 int64 counters_[MAX_COUNTER]; 97 int64 counters_[MAX_COUNTER];
98 StatsHistogram* size_histogram_; 98 StatsHistogram* size_histogram_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(Stats); 100 DISALLOW_COPY_AND_ASSIGN(Stats);
101 }; 101 };
102 102
103 } // namespace disk_cache 103 } // namespace disk_cache
104 104
105 #endif // NET_DISK_CACHE_BLOCKFILE_STATS_H_ 105 #endif // NET_DISK_CACHE_BLOCKFILE_STATS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698