Lines Matching refs:name

18 // whenever the name changes (the experiment group changes), the histrogram
23 #define CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
26 if (!counter || name != counter->histogram_name()) \
28 name, min, max, bucket_count, \
33 #define CACHE_HISTOGRAM_COUNTS(name, sample) CACHE_HISTOGRAM_CUSTOM_COUNTS( \
34 name, sample, 1, 1000000, 50)
36 #define CACHE_HISTOGRAM_COUNTS_10000(name, sample) \
37 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
39 #define CACHE_HISTOGRAM_COUNTS_50000(name, sample) \
40 CACHE_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 50000000, 50)
42 #define CACHE_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
45 if (!counter || name != counter->histogram_name()) \
47 name, min, max, bucket_count, \
52 #define CACHE_HISTOGRAM_TIMES(name, sample) CACHE_HISTOGRAM_CUSTOM_TIMES( \
53 name, sample, base::TimeDelta::FromMilliseconds(1), \
56 #define CACHE_HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
58 if (!counter || name != counter->histogram_name()) \
60 name, 1, boundary_value, boundary_value + 1, \
65 #define CACHE_HISTOGRAM_PERCENTAGE(name, under_one_hundred) \
66 CACHE_HISTOGRAM_ENUMERATION(name, under_one_hundred, 101)
76 #define CACHE_HISTOGRAM_AGE(name, initial_time) \
77 CACHE_HISTOGRAM_COUNTS_10000(name, \
82 #define CACHE_HISTOGRAM_AGE_MS(name, initial_time)\
83 CACHE_HISTOGRAM_TIMES(name, base::TimeTicks::Now() - initial_time)
85 #define CACHE_HISTOGRAM_CACHE_ERROR(name, sample) \
86 CACHE_HISTOGRAM_ENUMERATION(name, sample, 50)
94 // Generates a UMA histogram of the given type, generating the proper name for
104 #define CACHE_UMA(type, name, experiment, sample) {\
105 const std::string my_name = BACKEND_OBJ->HistogramName(name, experiment);\