/frameworks/base/cmds/statsd/tests/log_event/ |
D | LogEventQueue_test.cpp | 35 int64_t timeBaseNs = 100; in TEST() local 36 std::thread writer([&queue, timeBaseNs] { in TEST() 39 bool success = queue.push(std::make_unique<LogEvent>(10, timeBaseNs + i * 1000), in TEST() 46 std::thread reader([&queue, timeBaseNs] { in TEST() 51 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST() 61 int64_t timeBaseNs = 100; in TEST() local 62 std::thread writer([&queue, timeBaseNs] { in TEST() 66 bool success = queue.push(std::make_unique<LogEvent>(10, timeBaseNs + i * 1000), in TEST() 80 std::thread reader([&queue, timeBaseNs] { in TEST() 86 EXPECT_EQ(timeBaseNs + i * 1000, event->GetElapsedTimestampNs()); in TEST()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 182 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, 277 const int64_t timeBaseNs, const int64_t bucketSizeNs, T* bucket) { in backfillStartEndTimestampForFullBucket() argument 278 bucket->set_start_bucket_elapsed_nanos(timeBaseNs + bucketSizeNs * bucket->bucket_num()); in backfillStartEndTimestampForFullBucket() 280 timeBaseNs + bucketSizeNs * bucket->bucket_num() + bucketSizeNs); in backfillStartEndTimestampForFullBucket() 285 void backfillStartEndTimestampForPartialBucket(const int64_t timeBaseNs, T* bucket) { in backfillStartEndTimestampForPartialBucket() argument 299 void backfillStartEndTimestampForMetrics(const int64_t timeBaseNs, const int64_t bucketSizeNs, in backfillStartEndTimestampForMetrics() argument 306 backfillStartEndTimestampForFullBucket(timeBaseNs, bucketSizeNs, bucket); in backfillStartEndTimestampForMetrics() 308 backfillStartEndTimestampForPartialBucket(timeBaseNs, bucket); in backfillStartEndTimestampForMetrics() 315 void backfillStartEndTimestampForSkippedBuckets(const int64_t timeBaseNs, T* metrics) { in backfillStartEndTimestampForSkippedBuckets() argument 317 backfillStartEndTimestampForPartialBucket(timeBaseNs, metrics->mutable_skipped(i)); in backfillStartEndTimestampForSkippedBuckets()
|
D | statsd_test_util.cpp | 452 sp<StatsLogProcessor> CreateStatsLogProcessor(const int64_t timeBaseNs, const int64_t currentTimeNs, in CreateStatsLogProcessor() argument 464 timeBaseNs, [](const ConfigKey&) { return true; }, in CreateStatsLogProcessor() 791 const int64_t timeBaseNs = report->time_base_elapsed_nano_seconds(); in backfillStartEndTimestamp() local 795 timeBaseNs, bucketSizeNs, report->mutable_count_metrics()); in backfillStartEndTimestamp() 798 timeBaseNs, bucketSizeNs, report->mutable_duration_metrics()); in backfillStartEndTimestamp() 801 timeBaseNs, bucketSizeNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp() 804 timeBaseNs, report->mutable_gauge_metrics()); in backfillStartEndTimestamp() 808 timeBaseNs, bucketSizeNs, report->mutable_value_metrics()); in backfillStartEndTimestamp() 811 timeBaseNs, report->mutable_value_metrics()); in backfillStartEndTimestamp()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | MetricProducer.h | 76 MetricProducer(const int64_t& metricId, const ConfigKey& key, const int64_t timeBaseNs, in MetricProducer() argument 80 mTimeBaseNs(timeBaseNs), in MetricProducer() 81 mCurrentBucketStartTimeNs(timeBaseNs), in MetricProducer()
|
D | CountMetricProducer.h | 45 const int64_t timeBaseNs, const int64_t startTimeNs);
|
D | metrics_manager_util.cpp | 663 const int64_t timeBaseNs, const int64_t currentTimeNs, in initAlarms() argument 666 int64_t startMillis = timeBaseNs / 1000 / 1000; in initAlarms() 776 const sp<AlarmMonitor>& periodicAlarmMonitor, const int64_t timeBaseNs, in initStatsdConfig() argument 806 if (!initMetrics(key, config, timeBaseNs, currentTimeNs, pullerManager, logTrackerMap, in initStatsdConfig() 819 timeBaseNs, currentTimeNs, allPeriodicAlarmTrackers)) { in initStatsdConfig()
|
D | MetricsManager.cpp | 63 const int64_t timeBaseNs, const int64_t currentTimeNs, in MetricsManager() argument 76 refreshTtl(timeBaseNs); in MetricsManager() 80 timeBaseNs, currentTimeNs, mTagIds, mAllAtomMatchers, mAllConditionTrackers, in MetricsManager()
|
D | metrics_manager_util.h | 100 const sp<AlarmMonitor>& periodicAlarmMonitor, const int64_t timeBaseNs,
|
D | CountMetricProducer.cpp | 71 const int64_t timeBaseNs, const int64_t startTimeNs) in CountMetricProducer() argument 72 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard) { in CountMetricProducer()
|
D | DurationMetricProducer.h | 45 … const FieldMatcher& internalDimensions, const int64_t timeBaseNs, const int64_t startTimeNs);
|
D | GaugeMetricProducer.h | 64 const int64_t timeBaseNs, const int64_t startTimeNs,
|
D | MetricsManager.h | 40 MetricsManager(const ConfigKey& configKey, const StatsdConfig& config, const int64_t timeBaseNs,
|
D | ValueMetricProducer.cpp | 79 const sp<EventMatcherWizard>& matcherWizard, const int pullTagId, const int64_t timeBaseNs, in ValueMetricProducer() argument 81 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, conditionWizard), in ValueMetricProducer() 108 mConditionTimer(false, timeBaseNs) { in ValueMetricProducer()
|
D | GaugeMetricProducer.cpp | 73 const int atomId, const int64_t timeBaseNs, const int64_t startTimeNs, in GaugeMetricProducer() argument 75 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard), in GaugeMetricProducer()
|
D | ValueMetricProducer.h | 57 const int pullTagId, const int64_t timeBaseNs, const int64_t startTimeNs,
|
D | DurationMetricProducer.cpp | 72 const int64_t timeBaseNs, const int64_t startTimeNs) in DurationMetricProducer() argument 73 : MetricProducer(metric.id(), key, timeBaseNs, conditionIndex, wizard), in DurationMetricProducer()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsLogProcessor.h | 40 const int64_t timeBaseNs,
|
D | StatsLogProcessor.cpp | 81 const int64_t timeBaseNs, in StatsLogProcessor() argument 91 mTimeBaseNs(timeBaseNs), in StatsLogProcessor()
|