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

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

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 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/blockfile/file_win.cc ('k') | net/disk_cache/blockfile/histogram_macros_v3.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains macros to simplify histogram reporting from the disk 5 // This file contains macros to simplify histogram reporting from the disk
6 // cache. The main issue is that we want to have separate histograms for each 6 // cache. The main issue is that we want to have separate histograms for each
7 // type of cache (regular vs. media, etc), without adding the complexity of 7 // type of cache (regular vs. media, etc), without adding the complexity of
8 // keeping track of a potentially large number of histogram objects that have to 8 // keeping track of a potentially large number of histogram objects that have to
9 // survive the backend object that created them. 9 // survive the backend object that created them.
10 10
11 #ifndef NET_DISK_CACHE_HISTOGRAM_MACROS_H_ 11 #ifndef NET_DISK_CACHE_BLOCKFILE_HISTOGRAM_MACROS_H_
12 #define NET_DISK_CACHE_HISTOGRAM_MACROS_H_ 12 #define NET_DISK_CACHE_BLOCKFILE_HISTOGRAM_MACROS_H_
13 13
14 // ----------------------------------------------------------------------------- 14 // -----------------------------------------------------------------------------
15 15
16 // These histograms follow the definition of UMA_HISTOGRAMN_XXX except that 16 // These histograms follow the definition of UMA_HISTOGRAMN_XXX except that
17 // whenever the name changes (the experiment group changes), the histrogram 17 // whenever the name changes (the experiment group changes), the histrogram
18 // object is re-created. 18 // object is re-created.
19 // Note: These macros are only run on one thread, so the declarations of 19 // Note: These macros are only run on one thread, so the declarations of
20 // |counter| was made static (i.e., there will be no race for reinitialization). 20 // |counter| was made static (i.e., there will be no race for reinitialization).
21 21
22 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \ 22 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 break;\ 112 break;\
113 case net::PNACL_CACHE:\ 113 case net::PNACL_CACHE:\
114 CACHE_HISTOGRAM_##type(my_name.data(), sample);\ 114 CACHE_HISTOGRAM_##type(my_name.data(), sample);\
115 break;\ 115 break;\
116 default:\ 116 default:\
117 NOTREACHED();\ 117 NOTREACHED();\
118 break;\ 118 break;\
119 }\ 119 }\
120 } 120 }
121 121
122 #endif // NET_DISK_CACHE_HISTOGRAM_MACROS_H_ 122 #endif // NET_DISK_CACHE_BLOCKFILE_HISTOGRAM_MACROS_H_
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/file_win.cc ('k') | net/disk_cache/blockfile/histogram_macros_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698