Searched refs:shardCount (Results 1 – 7 of 7) sorted by relevance
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 1218 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/ |
D | FieldValue.cpp | 581 bool shouldKeepSample(const FieldValue& sampleFieldValue, int shardOffset, int shardCount) { in shouldKeepSample() argument 610 return (hashValue + shardOffset) % shardCount == 0; in shouldKeepSample()
|
D | FieldValue.h | 492 bool shouldKeepSample(const FieldValue& sampleFieldValue, int shardOffset, int shardCount);
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricProducer.h | 118 int shardCount = 0; member 384 mShardCount = samplingInfo.shardCount; in setSamplingInfo()
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | GaugeMetricProducer_test.cpp | 942 int shardCount = 2; in TEST() local 949 sampledGaugeMetric.mutable_dimensional_sampling_info()->set_shard_count(shardCount); in TEST() 982 samplingInfo.shardCount = shardCount; in TEST()
|
D | NumericValueMetricProducer_test.cpp | 150 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/ |
D | metrics_manager_util.cpp | 339 samplingInfo.shardCount = dimSamplingInfo.shard_count(); in handleMetricWithDimensionalSampling()
|