Home | History | Annotate | Download | only in metrics

Lines Matching refs: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 LOCAL_HISTOGRAM_TIMES(name, sample) LOCAL_HISTOGRAM_CUSTOM_TIMES( \
169 name, sample, base::TimeDelta::FromMilliseconds(1), \
174 #define LOCAL_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
175 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
179 #define LOCAL_HISTOGRAM_COUNTS(name, sample) LOCAL_HISTOGRAM_CUSTOM_COUNTS( \
180 name, sample, 1, 1000000, 50)
182 #define LOCAL_HISTOGRAM_COUNTS_100(name, sample) \
183 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 100, 50)
185 #define LOCAL_HISTOGRAM_COUNTS_10000(name, sample) \
186 LOCAL_HISTOGRAM_CUSTOM_COUNTS(name, sample, 1, 10000, 50)
188 #define LOCAL_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 LOCAL_HISTOGRAM_BOOLEAN(name, sample) \
203 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
212 #define LOCAL_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 LOCAL_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
223 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
227 #define LOCAL_HISTOGRAM_MEMORY_KB(name, sample) LOCAL_HISTOGRAM_CUSTOM_COUNTS( \
228 name, sample, 1000, 500000, 50)
236 #define UMA_HISTOGRAM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
237 name, sample, base::TimeDelta::FromMilliseconds(1), \
240 #define UMA_HISTOGRAM_MEDIUM_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
241 name, sample, base::TimeDelta::FromMilliseconds(10), \
245 #define UMA_HISTOGRAM_LONG_TIMES(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
246 name, sample, base::TimeDelta::FromMilliseconds(1), \
251 #define UMA_HISTOGRAM_LONG_TIMES_100(name, sample) UMA_HISTOGRAM_CUSTOM_TIMES( \
252 name, sample, base::TimeDelta::FromMilliseconds(1), \
255 #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) \
256 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddTime(sample), \
260 #define UMA_HISTOGRAM_COUNTS(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
261 name, sample, 1, 1000000, 50)
263 #define UMA_HISTOGRAM_COUNTS_100(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
264 name, sample, 1, 100, 50)
266 #define UMA_HISTOGRAM_COUNTS_10000(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
267 name, sample, 1, 10000, 50)
269 #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) \
270 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
274 #define UMA_HISTOGRAM_MEMORY_KB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
275 name, sample, 1000, 500000, 50)
277 #define UMA_HISTOGRAM_MEMORY_MB(name, sample) UMA_HISTOGRAM_CUSTOM_COUNTS( \
278 name, sample, 1, 1000, 50)
283 #define UMA_HISTOGRAM_BOOLEAN(name, sample) \
284 STATIC_HISTOGRAM_POINTER_BLOCK(name, AddBoolean(sample), \
290 #define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
291 HISTOGRAM_ENUMERATION_WITH_FLAG(name, sample, boundary_value, \
297 #define UMA_STABILITY_HISTOGRAM_ENUMERATION(name, sample, boundary_value) \
298 HISTOGRAM_ENUMERATION_WITH_FLAG(name, sample, boundary_value, \
301 #define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) \
302 STATIC_HISTOGRAM_POINTER_BLOCK(name, Add(sample), \
334 Sample minimum,
335 Sample maximum,
344 static void InitializeBucketRanges(Sample minimum,
345 Sample maximum,
351 // redundant count that doesn't match the sample count. We allow for a
367 Sample declared_min() const { return declared_min_; }
368 Sample declared_max() const { return declared_max_; }
369 virtual Sample ranges(size_t i) const;
380 Sample* minimum,
381 Sample* maximum,
387 Sample expected_minimum,
388 Sample expected_maximum,
390 virtual void Add(Sample value) OVERRIDE;
401 Sample minimum,
402 Sample maximum,
470 Sample declared_min_; // Less than this goes into the first bucket.
471 Sample declared_max_; // Over this goes into the last bucket.
474 // sample.
491 Sample minimum,
492 Sample maximum,
502 Sample sample;
513 Sample minimum,
514 Sample maximum,
519 static void InitializeBucketRanges(Sample minimum,
520 Sample maximum,
528 Sample minimum,
529 Sample maximum,
550 typedef std::map<Sample, std::string> BucketDescriptionMap;
585 const std::vector<Sample>& custom_ranges,
594 // valid sample value (unless the next higher sample is also a valid value),
597 static std::vector<Sample> ArrayToCustomRanges(const Sample* values,
613 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges);
615 const std::vector<Sample>& custom_ranges);