Lines Matching refs:name

17 // Histogram count(L"some name", 1, 64, 8);
63 #define HISTOGRAM_TIMES(name, sample) HISTOGRAM_CUSTOM_TIMES( \
64 name, sample, base::TimeDelta::FromMilliseconds(1), \
67 #define HISTOGRAM_COUNTS(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
68 name, sample, 1, 1000000, 50)
70 #define HISTOGRAM_COUNTS_100(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
71 name, sample, 1, 100, 50)
73 #define HISTOGRAM_COUNTS_10000(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
74 name, sample, 1, 10000, 50)
76 #define HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) do { \
79 counter = base::Histogram::FactoryGet(name, min, max, bucket_count, \
81 DCHECK_EQ(name, counter->histogram_name()); \
85 #define HISTOGRAM_PERCENTAGE(name, under_one_hundred) \
86 HISTOGRAM_ENUMERATION(name, under_one_hundred, 101)
90 #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \
93 counter = base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \
95 DCHECK_EQ(name, counter->histogram_name()); \
100 #define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \
103 counter = base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \
105 DCHECK_EQ(name, counter->histogram_name()); \
112 #define HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
115 counter = base::LinearHistogram::FactoryGet(name, 1, boundary_value, \
117 DCHECK_EQ(name, counter->histogram_name()); \
121 #define HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \
124 counter = base::CustomHistogram::FactoryGet(name, custom_ranges, \
126 DCHECK_EQ(name, counter->histogram_name()); \
135 #define DHISTOGRAM_TIMES(name, sample) HISTOGRAM_TIMES(name, sample)
136 #define DHISTOGRAM_COUNTS(name, sample) HISTOGRAM_COUNTS(name, sample)
137 #define DHISTOGRAM_PERCENTAGE(name, under_one_hundred) HISTOGRAM_PERCENTAGE(\
138 name, under_one_hundred)
139 #define DHISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
140 HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count)
141 #define DHISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) \
142 HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count)
143 #define DHISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
144 HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count)
145 #define DHISTOGRAM_ENUMERATION(name, sample, boundary_value) \
146 HISTOGRAM_ENUMERATION(name, sample, boundary_value)
147 #define DHISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
148 HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges)
152 #define DHISTOGRAM_TIMES(name, sample) do {} while (0)
153 #define DHISTOGRAM_COUNTS(name, sample) do {} while (0)
154 #define DHISTOGRAM_PERCENTAGE(name, under_one_hundred) do {} while (0)
155 #define DHISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
157 #define DHISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) \
159 #define DHISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
161 #define DHISTOGRAM_ENUMERATION(name, sample, boundary_value) do {} while (0)
162 #define DHISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
173 #define UMA_HISTOGRAM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
174 name, sample, base::TimeDelta::FromMilliseconds(1), \
177 #define UMA_HISTOGRAM_MEDIUM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
178 name, sample, base::TimeDelta::FromMilliseconds(10), \
182 #define UMA_HISTOGRAM_LONG_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
183 name, sample, base::TimeDelta::FromMilliseconds(1), \
186 #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \
189 counter = base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \
191 DCHECK_EQ(name, counter->histogram_name()); \
196 #define UMA_HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \
199 counter = base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \
201 DCHECK_EQ(name, counter->histogram_name()); \
205 #define UMA_HISTOGRAM_COUNTS(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
206 name, sample, 1, 1000000, 50)
208 #define UMA_HISTOGRAM_COUNTS_100(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
209 name, sample, 1, 100, 50)
211 #define UMA_HISTOGRAM_COUNTS_10000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
212 name, sample, 1, 10000, 50)
214 #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) do { \
217 counter = base::Histogram::FactoryGet(name, min, max, bucket_count, \
219 DCHECK_EQ(name, counter->histogram_name()); \
223 #define UMA_HISTOGRAM_MEMORY_KB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
224 name, sample, 1000, 500000, 50)
226 #define UMA_HISTOGRAM_MEMORY_MB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
227 name, sample, 1, 1000, 50)
229 #define UMA_HISTOGRAM_PERCENTAGE(name, under_one_hundred) \
230 UMA_HISTOGRAM_ENUMERATION(name, under_one_hundred, 101)
232 #define UMA_HISTOGRAM_BOOLEAN(name, sample) do { \
235 counter = base::BooleanHistogram::FactoryGet(name, \
237 DCHECK_EQ(name, counter->histogram_name()); \
241 #define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
244 counter = base::LinearHistogram::FactoryGet(name, 1, boundary_value, \
246 DCHECK_EQ(name, counter->histogram_name()); \
250 #define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \
253 counter = base::CustomHistogram::FactoryGet(name, custom_ranges, \
255 DCHECK_EQ(name, counter->histogram_name()); \
376 static Histogram* FactoryGet(const std::string& name,
381 static Histogram* FactoryTimeGet(const std::string& name,
460 Histogram(const std::string& name, Sample minimum,
462 Histogram(const std::string& name, TimeDelta minimum,
486 // be a name (or string description) given to the bucket.
552 // ASCII version of original name given to the constructor. All identically
590 static Histogram* FactoryGet(const std::string& name,
595 static Histogram* FactoryTimeGet(const std::string& name,
609 LinearHistogram(const std::string& name, Sample minimum,
612 LinearHistogram(const std::string& name, TimeDelta minimum,
623 // Skip printing of name for numeric range if we have a name (and if this is
642 static Histogram* FactoryGet(const std::string& name, Flags flags);
649 explicit BooleanHistogram(const std::string& name);
660 static Histogram* FactoryGet(const std::string& name,
668 CustomHistogram(const std::string& name,
709 // Find a histogram by name. It matches the exact name. This method is thread
720 // query are returned. The query must be a substring of histogram name for its
726 // We keep all registered histograms in a map, from name to histogram.