Searched refs:bucket_count (Results 1 - 7 of 7) sorted by relevance
/fuchsia/zircon/system/ulib/cobalt-client/include/cobalt-client/cpp/ |
H A D | histogram-options.h | 15 // Every histogram contains two additional buckets, one at index 0 and bucket_count + 1. 43 static HistogramOptions Exponential(uint32_t bucket_count, uint32_t base, uint32_t scalar, 48 static HistogramOptions Linear(uint32_t bucket_count, uint32_t scalar, int64_t offset); 62 if (scalar == 0 || bucket_count == 0) { 89 uint32_t bucket_count = 1; member in struct:cobalt_client::HistogramOptions
|
/fuchsia/zircon/system/ulib/cobalt-client/ |
H A D | histogram.cpp | 38 return options.bucket_count + 1; 50 return options.bucket_count + 1; 60 ZX_DEBUG_ASSERT(unshifted_bucket <= options.bucket_count + 1); 71 options->scalar * pow(options->base, options->bucket_count) + options->offset; 80 static_cast<double>(options->scalar * options->bucket_count + options->offset); 135 bucket_count(other.bucket_count), type(other.type) { 143 HistogramOptions HistogramOptions::Exponential(uint32_t bucket_count, uint32_t base, argument 146 options.bucket_count = bucket_count; 155 Linear(uint32_t bucket_count, uint32_t scalar, int64_t offset) argument [all...] |
H A D | collector.cpp | 59 RemoteHistogram(options.bucket_count + 2, metric_id, {MakeMetadata(event_type_index)}));
|
/fuchsia/zircon/kernel/lib/pow2_range_allocator/ |
H A D | pow2_range_allocator.cpp | 58 DEBUG_ASSERT(block->bucket < state->bucket_count); 88 if (block->bucket + 1 == state->bucket_count) 139 state->bucket_count = log2_uint_floor(max_alloc_size) + 1; 140 const size_t size = state->bucket_count * sizeof(state->free_block_buckets[0]); 143 TRACEF("Failed to allocate storage for %u free bucket lists!\n", state->bucket_count); 152 for (uint i = 0; i < state->bucket_count; ++i) 160 DEBUG_ASSERT(state->bucket_count); 167 for (uint i = 0; i < state->bucket_count; ++i) 225 DEBUG_ASSERT(state->bucket_count && state->free_block_buckets); 226 uint bucket = state->bucket_count [all...] |
/fuchsia/zircon/kernel/lib/pow2_range_allocator/include/lib/ |
H A D | pow2_range_allocator.h | 38 uint bucket_count; member in struct:p2ra_state
|
/fuchsia/zircon/system/utest/cobalt-client/ |
H A D | histogram_options_test.cpp | 19 HistogramOptions::Exponential(/*bucket_count=*/3, /*base=*/4, /*scalar=*/2, /*offset=*/-10); 20 ASSERT_EQ(options.bucket_count, 3); 36 HistogramOptions::Exponential(/*bucket_count=*/0, /*base=*/1, /*scalar=*/2, /*offset=*/-10); 44 HistogramOptions::Exponential(/*bucket_count=*/1, /*base=*/0, /*scalar=*/2, /*offset=*/-10); 52 HistogramOptions::Exponential(/*bucket_count=*/1, /*base=*/1, /*scalar=*/0, /*offset=*/-10); 65 HistogramOptions::Exponential(/*bucket_count=*/3, /*base=*/2, /*scalar=*/3, /*offset=*/5); 87 HistogramOptions::Exponential(/*bucket_count=*/3, /*base=*/2, /*scalar=*/3, /*offset=*/5); 99 HistogramOptions::Linear(/*bucket_count=*/3, /*scalar=*/2, /*offset=*/-10); 100 ASSERT_EQ(options.bucket_count, 3); 114 HistogramOptions::Linear(/*bucket_count [all...] |
H A D | collector_test.cpp | 149 HistogramOptions::Linear(/*bucket_count=*/2, /*scalar=*/2, /*offset=*/-2); 330 for (size_t bucket_index = 0; bucket_index < options.bucket_count + 2; ++bucket_index) {
|
Completed in 85 milliseconds