Searched refs:sampled_item_and_weight (Results 1 – 6 of 6) sorted by relevance
/packages/modules/StatsD/lib/libkll/tests/ |
D | sampler_test.cpp | 49 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F() 52 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 54 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F() 60 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 62 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(AnyOf(Eq(4), Eq(10)), Eq(2)))); in TEST_F() 64 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(_, Eq(3)))); in TEST_F() 66 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F() 73 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F() 80 EXPECT_THAT(sampler.sampled_item_and_weight(), Optional(Pair(Eq(4), Eq(1)))); in TEST_F() 95 EXPECT_THAT(sampler.sampled_item_and_weight(), Eq(std::nullopt)); in TEST_F() [all …]
|
D | compactor_stack_test.cpp | 73 if (sampler.sampled_item_and_weight().has_value()) { in TEST_P() 74 EXPECT_EQ(sampler.sampled_item_and_weight().value().second, in TEST_P() 101 if (sampler.sampled_item_and_weight().has_value()) { in TEST_P() 102 EXPECT_EQ(sampler.sampled_item_and_weight().value().second, in TEST_P() 145 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_F() 169 EXPECT_FALSE(compactor_stack.sampled_item_and_weight().has_value()); in TEST_F() 205 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P() 206 previous_sampled_item = compactor_stack.sampled_item_and_weight()->first; in TEST_P() 234 if (!compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P() 242 if (compactor_stack.sampled_item_and_weight().has_value()) { in TEST_P() [all …]
|
/packages/modules/StatsD/lib/libkll/ |
D | kll.cpp | 104 const auto& sampled_item_and_weight = compactor_stack_.sampled_item_and_weight(); in SerializeToProto() local 105 if (sampled_item_and_weight.has_value()) { in SerializeToProto() 107 sampled_item_and_weight->first, in SerializeToProto() 109 quantile_state->mutable_sampler()->set_sampled_weight(sampled_item_and_weight->second); in SerializeToProto()
|
D | compactor_stack.cpp | 186 ((sampler_->sampled_item_and_weight().has_value()) ? 1 : 0); in num_stored_items() 190 std::optional<std::pair<const int64_t, int64_t>> CompactorStack::sampled_item_and_weight() const { in sampled_item_and_weight() function in dist_proc::aggregation::internal::CompactorStack 192 return sampler_->sampled_item_and_weight(); in sampled_item_and_weight()
|
/packages/modules/StatsD/lib/libkll/include/ |
D | sampler.h | 56 std::optional<std::pair<int64_t, int>> sampled_item_and_weight() const { in sampled_item_and_weight() function
|
D | compactor_stack.h | 65 std::optional<std::pair<const int64_t, int64_t>> sampled_item_and_weight() const;
|