Home | History | Annotate | Download | only in metrics

Lines Matching defs:Sample

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 { \
82 counter->Add(sample); \
90 #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \
96 counter->AddTime(sample); \
100 #define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \
106 if ((sample) < (max)) counter->AddTime(sample); \
112 #define HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
118 counter->Add(sample); \
121 #define HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \
127 counter->Add(sample); \
135 #define DHISTOGRAM_TIMES(name, sample) HISTOGRAM_TIMES(name, sample)
136 #define DHISTOGRAM_COUNTS(name, sample) HISTOGRAM_COUNTS(name, sample)
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)
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 { \
192 counter->AddTime(sample); \
196 #define UMA_HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \
202 if ((sample) < (max)) counter->AddTime(sample); \
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 { \
220 counter->Add(sample); \
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)
232 #define UMA_HISTOGRAM_BOOLEAN(name, sample) do { \
238 counter->AddBoolean(sample); \
241 #define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \
247 counter->Add(sample); \
250 #define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \
256 counter->Add(sample); \
268 typedef int Sample; // Used for samples (and ranges of samples).
270 static const Sample kSampleType_MAX = INT_MAX;
275 typedef std::vector<Sample> Ranges;
318 Sample sample;
335 void Accumulate(Sample value, Count count, size_t index);
377 Sample minimum,
378 Sample maximum,
397 void AddSampleSet(const SampleSet& sample);
441 Sample declared_min() const { return declared_min_; }
442 Sample declared_max() const { return declared_max_; }
443 virtual Sample ranges(size_t i) const;
446 // Snapshot the current complete set of sample data.
448 virtual void SnapshotSample(SampleSet* sample) const;
450 virtual bool HasConstructorArguments(Sample minimum, Sample maximum,
460 Histogram(const std::string& name, Sample minimum,
461 Sample maximum, size_t bucket_count);
476 // Find bucket to increment for sample value.
477 virtual size_t BucketIndex(Sample value) const;
493 virtual void Accumulate(Sample value, Count count, size_t index);
498 void SetBucketRange(size_t i, Sample value);
519 static uint32 Crc32(uint32 sum, Sample range);
555 Sample declared_min_; // Less than this goes into counts_[0]
556 Sample declared_max_; // Over this goes into counts_[bucket_count_ - 1].
568 // For redundancy, we store a checksum of all the sample ranges when ranges
574 // sample.
591 Sample minimum,
592 Sample maximum,
609 LinearHistogram(const std::string& name, Sample minimum,
610 Sample maximum, size_t bucket_count);
631 typedef std::map<Sample, std::string> BucketDescriptionMap;
661 const std::vector<Sample>& custom_ranges,
669 const std::vector<Sample>& custom_ranges);
672 void InitializedCustomBucketRange(const std::vector<Sample>& custom_ranges);