Lines Matching refs:name

17 // whenever the name changes (the experiment group changes), the histrogram
20 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
23 if (!counter || name != counter->histogram_name()) \
25 name, min, max, bucket_count, \
30 #define CACHE_HISTOGRAM_COUNTS(name, sample) CACHE_HISTOGRAM_CUSTOM_COUNTS( \
31 name, sample, 1, 1000000, 50)
33 #define CACHE_HISTOGRAM_COUNTS_10000(name, sample) \
34 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
36 #define CACHE_HISTOGRAM_COUNTS_50000(name, sample) \
37 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 50000000, 50)
39 #define CACHE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
42 if (!counter || name != counter->histogram_name()) \
44 name, min, max, bucket_count, \
49 #define CACHE_HISTOGRAM_TIMES(name, sample) CACHE_HISTOGRAM_CUSTOM_TIMES( \
50 name, sample, base::TimeDelta::FromMilliseconds(1), \
53 #define CACHE_HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
55 if (!counter || name != counter->histogram_name()) \
57 name, 1, boundary_value, boundary_value + 1, \
62 #define CACHE_HISTOGRAM_PERCENTAGE(name, under_one_hundred) \
63 CACHE_HISTOGRAM_ENUMERATION(name, under_one_hundred, 101)
73 #define CACHE_HISTOGRAM_AGE(name, initial_time) \
74 CACHE_HISTOGRAM_COUNTS_10000(name, \
79 #define CACHE_HISTOGRAM_AGE_MS(name, initial_time)\
80 CACHE_HISTOGRAM_TIMES(name, base::TimeTicks::Now() - initial_time)
82 #define CACHE_HISTOGRAM_CACHE_ERROR(name, sample) \
83 CACHE_HISTOGRAM_ENUMERATION(name, sample, 50)
85 // Generates a UMA histogram of the given type, generating the proper name for
93 #define CACHE_UMA(type, name, sample) {\
95 CACHE_UMA_BACKEND_IMPL_OBJ->HistogramName(name);\