Home
last modified time | relevance | path

Searched refs:shardCount (Results 1 – 7 of 7) sorted by relevance

/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp1218 int shardCount = 2; in TEST() local
1229 EXPECT_TRUE(shouldKeepSample(fieldValue1, shardOffset, shardCount)); in TEST()
1230 EXPECT_FALSE(shouldKeepSample(fieldValue2, shardOffset, shardCount)); in TEST()
1235 int shardCount = 2; in TEST() local
1246 EXPECT_FALSE(shouldKeepSample(fieldValue1, shardOffset, shardCount)); in TEST()
1247 EXPECT_TRUE(shouldKeepSample(fieldValue2, shardOffset, shardCount)); in TEST()
1252 int shardCount = 2; in TEST() local
1263 EXPECT_TRUE(shouldKeepSample(fieldValue1, shardOffset, shardCount)); in TEST()
1264 EXPECT_FALSE(shouldKeepSample(fieldValue2, shardOffset, shardCount)); in TEST()
1269 int shardCount = 2; in TEST() local
[all …]
/packages/modules/StatsD/statsd/src/
DFieldValue.cpp581 bool shouldKeepSample(const FieldValue& sampleFieldValue, int shardOffset, int shardCount) { in shouldKeepSample() argument
610 return (hashValue + shardOffset) % shardCount == 0; in shouldKeepSample()
DFieldValue.h492 bool shouldKeepSample(const FieldValue& sampleFieldValue, int shardOffset, int shardCount);
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.h118 int shardCount = 0; member
384 mShardCount = samplingInfo.shardCount; in setSamplingInfo()
/packages/modules/StatsD/statsd/tests/metrics/
DGaugeMetricProducer_test.cpp942 int shardCount = 2; in TEST() local
949 sampledGaugeMetric.mutable_dimensional_sampling_info()->set_shard_count(shardCount); in TEST()
982 samplingInfo.shardCount = shardCount; in TEST()
DNumericValueMetricProducer_test.cpp150 samplingInfo.shardCount = metric.dimensional_sampling_info().shard_count(); in createValueProducerWithSampling()
7626 int shardCount = 2; in TEST() local
7631 sampledValueMetric.mutable_dimensional_sampling_info()->set_shard_count(shardCount); in TEST()
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.cpp339 samplingInfo.shardCount = dimSamplingInfo.shard_count(); in handleMetricWithDimensionalSampling()