• Home
  • Raw
  • Download

Lines Matching refs:bucket_count

40                             size_t* bucket_count,  in ReadHistogramArguments()  argument
46 !iter->ReadSizeT(bucket_count) || in ReadHistogramArguments()
57 INT_MAX / sizeof(HistogramBase::Count) <= *bucket_count || in ReadHistogramArguments()
58 *bucket_count < 2) { in ReadHistogramArguments()
90 size_t bucket_count, in FactoryGet() argument
93 InspectConstructionArguments(name, &minimum, &maximum, &bucket_count); in FactoryGet()
99 BucketRanges* ranges = new BucketRanges(bucket_count + 1); in FactoryGet()
113 if (!histogram->HasConstructionArguments(minimum, maximum, bucket_count)) { in FactoryGet()
129 size_t bucket_count, in FactoryTimeGet() argument
132 static_cast<Sample>(maximum.InMilliseconds()), bucket_count, in FactoryTimeGet()
139 size_t bucket_count, in FactoryGet() argument
141 return FactoryGet(std::string(name), minimum, maximum, bucket_count, flags); in FactoryGet()
147 size_t bucket_count, in FactoryTimeGet() argument
149 return FactoryTimeGet(std::string(name), minimum, maximum, bucket_count, in FactoryTimeGet()
172 size_t bucket_count = ranges->bucket_count(); in InitializeBucketRanges() local
173 while (bucket_count > ++bucket_index) { in InitializeBucketRanges()
177 log_ratio = (log_max - log_current) / (bucket_count - bucket_index); in InitializeBucketRanges()
188 ranges->set_range(ranges->bucket_count(), HistogramBase::kSampleType_MAX); in InitializeBucketRanges()
198 for (size_t index = 0; index < bucket_count(); ++index) { in FindCorruption()
231 size_t Histogram::bucket_count() const { in bucket_count() function in base::Histogram
232 return bucket_ranges_->bucket_count(); in bucket_count()
239 size_t* bucket_count) { in InspectConstructionArguments() argument
249 if (*bucket_count >= kBucketCount_MAX) { in InspectConstructionArguments()
251 << *bucket_count; in InspectConstructionArguments()
252 *bucket_count = kBucketCount_MAX - 1; in InspectConstructionArguments()
257 if (*bucket_count < 3) in InspectConstructionArguments()
259 if (*bucket_count > static_cast<size_t>(*maximum - *minimum + 2)) in InspectConstructionArguments()
277 (expected_bucket_count == bucket_count())); in HasConstructionArguments()
286 DCHECK_EQ(kSampleType_MAX, ranges(bucket_count())); in AddCount()
331 pickle->WriteSizeT(bucket_count()) && in SerializeInfoImpl()
381 size_t bucket_count; in DeserializeInfoImpl() local
385 &declared_max, &bucket_count, &range_checksum)) { in DeserializeInfoImpl()
391 histogram_name, declared_min, declared_max, bucket_count, flags); in DeserializeInfoImpl()
425 size_t largest_non_empty_bucket = bucket_count() - 1; in WriteAsciiImpl()
434 for (size_t i = 0; i < bucket_count(); ++i) { in WriteAsciiImpl()
445 for (size_t i = 0; i < bucket_count(); ++i) { in WriteAsciiImpl()
454 if (0 == current && i < bucket_count() - 1 && in WriteAsciiImpl()
456 while (i < bucket_count() - 1 && in WriteAsciiImpl()
476 for (size_t i = 0; i < bucket_count() ; ++i) { in GetPeakBucketSize()
519 params->SetInteger("bucket_count", static_cast<int>(bucket_count())); in GetParameters()
529 for (size_t i = 0; i < bucket_count(); ++i) { in GetCountAndBucketData()
534 if (i != bucket_count() - 1) in GetCountAndBucketData()
553 size_t bucket_count, in FactoryGet() argument
556 name, minimum, maximum, bucket_count, flags, NULL); in FactoryGet()
562 size_t bucket_count, in FactoryTimeGet() argument
565 static_cast<Sample>(maximum.InMilliseconds()), bucket_count, in FactoryTimeGet()
572 size_t bucket_count, in FactoryGet() argument
574 return FactoryGet(std::string(name), minimum, maximum, bucket_count, flags); in FactoryGet()
580 size_t bucket_count, in FactoryTimeGet() argument
582 return FactoryTimeGet(std::string(name), minimum, maximum, bucket_count, in FactoryTimeGet()
590 size_t bucket_count, in FactoryGetWithRangeDescription() argument
594 name, &minimum, &maximum, &bucket_count); in FactoryGetWithRangeDescription()
600 BucketRanges* ranges = new BucketRanges(bucket_count + 1); in FactoryGetWithRangeDescription()
622 if (!histogram->HasConstructionArguments(minimum, maximum, bucket_count)) { in FactoryGetWithRangeDescription()
672 size_t bucket_count = ranges->bucket_count(); in InitializeBucketRanges() local
673 for (size_t i = 1; i < bucket_count; ++i) { in InitializeBucketRanges()
675 (min * (bucket_count - 1 - i) + max * (i - 1)) / (bucket_count - 2); in InitializeBucketRanges()
678 ranges->set_range(ranges->bucket_count(), HistogramBase::kSampleType_MAX); in InitializeBucketRanges()
688 size_t bucket_count; in DeserializeInfoImpl() local
692 &declared_max, &bucket_count, &range_checksum)) { in DeserializeInfoImpl()
697 histogram_name, declared_min, declared_max, bucket_count, flags); in DeserializeInfoImpl()
748 size_t bucket_count; in DeserializeInfoImpl() local
752 &declared_max, &bucket_count, &range_checksum)) { in DeserializeInfoImpl()
825 ranges->range(ranges->bucket_count() - 1), in CustomHistogram()
834 for (size_t i = 1; i < bucket_ranges()->bucket_count(); ++i) { in SerializeInfoImpl()
852 size_t bucket_count; in DeserializeInfoImpl() local
856 &declared_max, &bucket_count, &range_checksum)) { in DeserializeInfoImpl()
861 std::vector<Sample> sample_ranges(bucket_count - 1); in DeserializeInfoImpl()