Lines Matching refs:ranges

99     BucketRanges* ranges = new BucketRanges(bucket_count + 1);  in FactoryGet()  local
100 InitializeBucketRanges(minimum, maximum, ranges); in FactoryGet()
102 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges); in FactoryGet()
165 BucketRanges* ranges) { in InitializeBucketRanges() argument
171 ranges->set_range(bucket_index, current); in InitializeBucketRanges()
172 size_t bucket_count = ranges->bucket_count(); in InitializeBucketRanges()
186 ranges->set_range(bucket_index, current); in InitializeBucketRanges()
188 ranges->set_range(ranges->bucket_count(), HistogramBase::kSampleType_MAX); in InitializeBucketRanges()
189 ranges->ResetChecksum(); in InitializeBucketRanges()
199 int new_range = ranges(index); in FindCorruption()
227 Sample Histogram::ranges(size_t i) const { in ranges() function in base::Histogram
285 DCHECK_EQ(0, ranges(0)); in AddCount()
286 DCHECK_EQ(kSampleType_MAX, ranges(bucket_count())); in AddCount()
338 const BucketRanges* ranges) in Histogram() argument
340 bucket_ranges_(ranges), in Histogram()
343 if (ranges) in Histogram()
344 samples_.reset(new SampleVector(HashMetricName(name), ranges)); in Histogram()
360 DCHECK_GT(ranges(i + 1), ranges(i)); in GetBucketSize()
362 double denominator = ranges(i + 1) - ranges(i); in GetBucketSize()
369 return GetSimpleAsciiBucketRange(ranges(i)); in GetAsciiBucketRange()
533 bucket_value->SetInteger("low", ranges(i)); in GetCountAndBucketData()
535 bucket_value->SetInteger("high", ranges(i + 1)); in GetCountAndBucketData()
600 BucketRanges* ranges = new BucketRanges(bucket_count + 1); in FactoryGetWithRangeDescription() local
601 InitializeBucketRanges(minimum, maximum, ranges); in FactoryGetWithRangeDescription()
603 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges); in FactoryGetWithRangeDescription()
642 const BucketRanges* ranges) in LinearHistogram() argument
643 : Histogram(name, minimum, maximum, ranges) { in LinearHistogram()
647 DCHECK_GT(ranges(i + 1), ranges(i)); in GetBucketSize()
650 double denominator = ranges(i + 1) - ranges(i); in GetBucketSize()
655 int range = ranges(i); in GetAsciiBucketRange()
663 return bucket_description_.find(ranges(index)) == bucket_description_.end(); in PrintEmptyBucket()
669 BucketRanges* ranges) { in InitializeBucketRanges() argument
672 size_t bucket_count = ranges->bucket_count(); in InitializeBucketRanges()
676 ranges->set_range(i, static_cast<Sample>(linear_range + 0.5)); in InitializeBucketRanges()
678 ranges->set_range(ranges->bucket_count(), HistogramBase::kSampleType_MAX); in InitializeBucketRanges()
679 ranges->ResetChecksum(); in InitializeBucketRanges()
714 BucketRanges* ranges = new BucketRanges(4); in FactoryGet() local
715 LinearHistogram::InitializeBucketRanges(1, 2, ranges); in FactoryGet()
717 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges); in FactoryGet()
740 const BucketRanges* ranges) in BooleanHistogram() argument
741 : LinearHistogram(name, 1, 2, ranges) {} in BooleanHistogram()
777 BucketRanges* ranges = CreateBucketRangesFromCustomRanges(custom_ranges); in FactoryGet() local
779 StatisticsRecorder::RegisterOrDeleteDuplicateRanges(ranges); in FactoryGet()
822 const BucketRanges* ranges) in CustomHistogram() argument
824 ranges->range(1), in CustomHistogram()
825 ranges->range(ranges->bucket_count() - 1), in CustomHistogram()
826 ranges) {} in CustomHistogram()
895 std::vector<int> ranges = custom_ranges; in CreateBucketRangesFromCustomRanges() local
896 ranges.push_back(0); // Ensure we have a zero value. in CreateBucketRangesFromCustomRanges()
897 ranges.push_back(HistogramBase::kSampleType_MAX); in CreateBucketRangesFromCustomRanges()
898 std::sort(ranges.begin(), ranges.end()); in CreateBucketRangesFromCustomRanges()
899 ranges.erase(std::unique(ranges.begin(), ranges.end()), ranges.end()); in CreateBucketRangesFromCustomRanges()
901 BucketRanges* bucket_ranges = new BucketRanges(ranges.size()); in CreateBucketRangesFromCustomRanges()
902 for (size_t i = 0; i < ranges.size(); i++) { in CreateBucketRangesFromCustomRanges()
903 bucket_ranges->set_range(i, ranges[i]); in CreateBucketRangesFromCustomRanges()