Lines Matching full:sample
100 // sample is an expansion (with comments) of the code for
134 histogram_pointer->Add(sample);
139 // vary are the invocation of the Add(sample) vs AddTime(sample), and the choice
168 #define HISTOGRAM_TIMES(name, sample) HISTOGRAM_CUSTOM_TIMES( \
169 name, sample, base::TimeDelta::FromMilliseconds(1), \
174 #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
175 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
179 #define HISTOGRAM_COUNTS(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
180 name, sample, 1, 1000000, 50)
182 #define HISTOGRAM_COUNTS_100(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
183 name, sample, 1, 100, 50)
185 #define HISTOGRAM_COUNTS_10000(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
186 name, sample, 1, 10000, 50)
188 #define HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
189 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
194 #define HISTOGRAM_ENUMERATION_WITH_FLAG(name, sample, boundary, flag) \
195 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
202 #define HISTOGRAM_BOOLEAN(name, sample) \
203 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
212 #define HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
213 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
221 // transform a C-style array of valid sample values to a std::vector<int>.
222 #define HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
223 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
227 #define HISTOGRAM_MEMORY_KB(name, sample) HISTOGRAM_CUSTOM_COUNTS( \
228 name, sample, 1000, 500000, 50)
234 #define DHISTOGRAM_TIMES(name, sample) HISTOGRAM_TIMES(name, sample)
235 #define DHISTOGRAM_COUNTS(name, sample) HISTOGRAM_COUNTS(name, sample)
238 #define DHISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
239 HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count)
240 #define DHISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) \
241 HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count)
242 #define DHISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
243 HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count)
244 #define DHISTOGRAM_ENUMERATION(name, sample, boundary_value) \
245 HISTOGRAM_ENUMERATION(name, sample, boundary_value)
246 #define DHISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
247 HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges)
271 #define DHISTOGRAM_TIMES(name, sample) \
272 DISCARD_2_ARGUMENTS(name, sample)
274 #define DHISTOGRAM_COUNTS(name, sample) \
275 DISCARD_2_ARGUMENTS(name, sample)
280 #define DHISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
281 DISCARD_5_ARGUMENTS(name, sample, min, max, bucket_count)
283 #define DHISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) \
284 DISCARD_5_ARGUMENTS(name, sample, min, max, bucket_count)
286 #define DHISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
287 DISCARD_5_ARGUMENTS(name, sample, min, max, bucket_count)
289 #define DHISTOGRAM_ENUMERATION(name, sample, boundary_value) \
290 DISCARD_3_ARGUMENTS(name, sample, boundary_value)
292 #define DHISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
293 DISCARD_3_ARGUMENTS(name, sample, custom_ranges)
303 #define UMA_HISTOGRAM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
304 name, sample, base::TimeDelta::FromMilliseconds(1), \
307 #define UMA_HISTOGRAM_MEDIUM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
308 name, sample, base::TimeDelta::FromMilliseconds(10), \
312 #define UMA_HISTOGRAM_LONG_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
313 name, sample, base::TimeDelta::FromMilliseconds(1), \
318 #define UMA_HISTOGRAM_LONG_TIMES_100(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
319 name, sample, base::TimeDelta::FromMilliseconds(1), \
322 #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
323 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
327 #define UMA_HISTOGRAM_COUNTS(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
328 name, sample, 1, 1000000, 50)
330 #define UMA_HISTOGRAM_COUNTS_100(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
331 name, sample, 1, 100, 50)
333 #define UMA_HISTOGRAM_COUNTS_10000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
334 name, sample, 1, 10000, 50)
336 #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
337 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
341 #define UMA_HISTOGRAM_MEMORY_KB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
342 name, sample
344 #define UMA_HISTOGRAM_MEMORY_MB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
345 name, sample, 1, 1000, 50)
350 #define UMA_HISTOGRAM_BOOLEAN(name, sample) \
351 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
357 #define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
358 HISTOGRAM_ENUMERATION_WITH_FLAG(name, sample, boundary_value, \
364 #define UMA_STABILITY_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
365 HISTOGRAM_ENUMERATION_WITH_FLAG(name, sample, boundary_value, \
368 #define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
369 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
401 Sample minimum,
402 Sample maximum,
415 static void InitializeBucketRanges(Sample minimum,
416 Sample maximum,
422 // redundant count that doesn't match the sample count. We allow for a
438 Sample declared_min() const { return declared_min_; }
439 Sample declared_max() const { return declared_max_; }
440 virtual Sample ranges(size_t i) const;
451 Sample* minimum,
452 Sample* maximum,
458 Sample expected_minimum,
459 Sample expected_maximum,
461 virtual void Add(Sample value) OVERRIDE;
472 Sample minimum,
473 Sample maximum,
541 Sample declared_min_; // Less than this goes into the first bucket.
542 Sample declared_max_; // Over this goes into the last bucket.
545 // sample.
562 Sample minimum,
563 Sample maximum,
573 Sample sample;
584 Sample minimum,
585 Sample maximum,
590 static void InitializeBucketRanges(Sample minimum,
591 Sample maximum,
599 Sample minimum,
600 Sample maximum,
621 typedef std::map<Sample, std::string> BucketDescriptionMap;
656 const std::vector<Sample>& custom_ranges,
665 // valid sample value (unless the next higher sample is also a valid value),
668 static std::vector<Sample> ArrayToCustomRanges(const Sample* values,
684 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges);
686 const std::vector<Sample>& custom_ranges);