HomeSort by relevance Sort by last modified time
    Searched refs:bucketSizeNs (Results 1 - 25 of 28) sorted by null

1 2

  /frameworks/base/cmds/statsd/tests/e2e/
GaugeMetric_e2e_pull_test.cpp 61 int64_t bucketSizeNs =
78 EXPECT_EQ(bucketSizeNs,
83 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + bucketSizeNs, nextPullTimeNs);
91 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 2 * bucketSizeNs, nextPullTimeNs);
94 configAddedTimeNs + bucketSizeNs + 10);
98 configAddedTimeNs + bucketSizeNs + 100);
102 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 3 * bucketSizeNs,
    [all...]
ValueMetric_pull_e2e_test.cpp 61 int64_t bucketSizeNs =
78 EXPECT_EQ(bucketSizeNs,
83 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + bucketSizeNs, expectedPullTimeNs);
99 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 2 * bucketSizeNs, expectedPullTimeNs);
104 configAddedTimeNs + 2 * bucketSizeNs + 15);
112 configAddedTimeNs + 4 * bucketSizeNs + 11);
121 processor->onDumpReport(cfgKey, configAddedTimeNs + 7 * bucketSizeNs + 10, false, ADB_DUMP,
143 EXPECT_EQ(baseTimeNs + 2 * bucketSizeNs, data.bucket_info(0).start_bucket_elapsed_nanos())
    [all...]
Anomaly_duration_sum_e2e_test.cpp 100 int64_t bucketSizeNs =
177 attributions2, "wl1", bucketStartTimeNs + bucketSizeNs - 5 * NS_PER_SEC - 11);
180 EXPECT_EQ((bucketStartTimeNs + bucketSizeNs - 5 * NS_PER_SEC) / NS_PER_SEC,
185 attributions2, "wl1", bucketStartTimeNs + bucketSizeNs - 4 * NS_PER_SEC - 10);
189 (bucketStartTimeNs + bucketSizeNs - 4 * NS_PER_SEC - 10) / NS_PER_SEC + 1,
198 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - 2);
200 EXPECT_EQ((bucketStartTimeNs + bucketSizeNs) / NS_PER_SEC,
205 attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + NS_PER_SEC - 1);
210 (bucketStartTimeNs + bucketSizeNs + NS_PER_SEC) / NS_PER_SEC,
216 bucketStartTimeNs + 2 * bucketSizeNs + 20)
    [all...]
DimensionInCondition_e2e_simple_cond_test.cpp 79 int64_t bucketSizeNs =
110 {CreateAttribution(8888, "")}, "job2",bucketStartTimeNs + bucketSizeNs + 850));
113 {CreateAttribution(8888, "")}, "job1", bucketStartTimeNs + bucketSizeNs + 600));
115 {CreateAttribution(8888, "")}, "job1", bucketStartTimeNs + bucketSizeNs + 900));
125 bucketStartTimeNs + bucketSizeNs + 300));
130 bucketStartTimeNs + bucketSizeNs - 1));
135 bucketStartTimeNs + bucketSizeNs + 700));
145 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false,
174 bucketStartTimeNs + bucketSizeNs);
188 bucketStartTimeNs + bucketSizeNs);
    [all...]
WakelockDuration_e2e_test.cpp 80 uint64_t bucketSizeNs =
89 bucketStartTimeNs + bucketSizeNs + 500);
93 CreateReleaseWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 2);
95 CreateAcquireWakelockEvent(attributions2, "wl2", bucketStartTimeNs + bucketSizeNs - 10);
97 bucketStartTimeNs + 2 * bucketSizeNs - 15);
122 uint64_t bucketSizeNs =
130 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs - 1, false, ADB_DUMP,
152 EXPECT_EQ((unsigned long long)data.bucket_info(0).duration_nanos(), bucketSizeNs - 200);
159 uint64_t bucketSizeNs =
167 processor->onDumpReport(cfgKey, bucketStartTimeNs + 2 * bucketSizeNs + 1, false, ADB_DUMP
    [all...]
Attribution_e2e_test.cpp 61 int64_t bucketSizeNs =
118 attributions3, "wl1", bucketStartTimeNs + bucketSizeNs - 1));
120 attributions4, "wl1", bucketStartTimeNs + bucketSizeNs));
124 attributions5, "wl2", bucketStartTimeNs + 2 * bucketSizeNs + 1));
126 attributions6, "wl2", bucketStartTimeNs + 2 * bucketSizeNs + 100));
128 attributions7, "wl2", bucketStartTimeNs + 3 * bucketSizeNs - 2));
130 attributions8, "wl2", bucketStartTimeNs + 3 * bucketSizeNs));
132 attributions9, "wl2", bucketStartTimeNs + 3 * bucketSizeNs + 1));
134 attributions9, "wl2", bucketStartTimeNs + 3 * bucketSizeNs + 100));
136 isolatedUid, 222, true/* is_create*/, bucketStartTimeNs + 3 * bucketSizeNs - 1))
    [all...]
DimensionInCondition_e2e_combination_AND_cond_test.cpp 93 int64_t bucketSizeNs =
126 bucketStartTimeNs + bucketSizeNs + 100));
130 bucketStartTimeNs + bucketSizeNs + 640));
133 bucketStartTimeNs + bucketSizeNs + 650));
149 bucketStartTimeNs + bucketSizeNs + 850));
153 bucketStartTimeNs + bucketSizeNs + 600));
156 bucketStartTimeNs + bucketSizeNs + 900));
166 bucketStartTimeNs + bucketSizeNs + 300));
171 bucketStartTimeNs + bucketSizeNs - 1));
176 bucketStartTimeNs + bucketSizeNs + 700))
    [all...]
DimensionInCondition_e2e_combination_OR_cond_test.cpp 75 int64_t bucketSizeNs =
96 bucketStartTimeNs + bucketSizeNs + 1));
98 bucketStartTimeNs + 2 * bucketSizeNs - 10));
102 CreateReleaseWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 1));
105 bucketStartTimeNs + bucketSizeNs - 100));
107 bucketStartTimeNs + 2 * bucketSizeNs - 50));
114 CreateScreenBrightnessChangedEvent(456, bucketStartTimeNs + bucketSizeNs - 99));
115 events.push_back(CreateScreenBrightnessChangedEvent(456, bucketStartTimeNs + bucketSizeNs - 2));
116 events.push_back(CreateScreenBrightnessChangedEvent(789, bucketStartTimeNs + bucketSizeNs - 1));
117 events.push_back(CreateScreenBrightnessChangedEvent(456, bucketStartTimeNs + bucketSizeNs + 2))
    [all...]
MetricConditionLink_e2e_test.cpp 106 uint64_t bucketSizeNs =
117 auto crashEvent3= CreateAppCrashEvent(appUid, bucketStartTimeNs + 2 * bucketSizeNs - 101);
120 auto crashEvent5 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 299);
121 auto crashEvent6 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 2001);
124 auto crashEvent8 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 249);
126 auto crashEvent9 = CreateAppCrashEvent(appUid, bucketStartTimeNs + bucketSizeNs + 351);
127 auto crashEvent10 = CreateAppCrashEvent(appUid, bucketStartTimeNs + 2 * bucketSizeNs - 2);
137 bucketStartTimeNs + 2 * bucketSizeNs - 100);
144 CreateSyncEndEvent(attributions, "ReadEmail", bucketStartTimeNs + bucketSizeNs + 300);
146 CreateSyncStartEvent(attributions, "ReadDoc", bucketStartTimeNs + bucketSizeNs + 2000)
    [all...]
Anomaly_count_e2e_test.cpp 64 int64_t bucketSizeNs =
131 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs - 1);
133 EXPECT_EQ(refractory_period_sec + (bucketStartTimeNs + bucketSizeNs - 1) / NS_PER_SEC + 1,
136 event = CreateAcquireWakelockEvent(attributions1, "wl1", bucketStartTimeNs + bucketSizeNs + 1);
138 EXPECT_EQ(refractory_period_sec + (bucketStartTimeNs + bucketSizeNs - 1) / NS_PER_SEC + 1,
141 event = CreateAcquireWakelockEvent(attributions4, "wl2", bucketStartTimeNs + bucketSizeNs + 1);
145 event = CreateAcquireWakelockEvent(attributions5, "wl2", bucketStartTimeNs + bucketSizeNs + 2);
149 event = CreateAcquireWakelockEvent(attributions5, "wl2", bucketStartTimeNs + bucketSizeNs + 3);
153 event = CreateAcquireWakelockEvent(attributions5, "wl2", bucketStartTimeNs + bucketSizeNs + 4);
155 EXPECT_EQ(refractory_period_sec + (bucketStartTimeNs + bucketSizeNs + 4) / NS_PER_SEC + 1
    [all...]
GaugeMetric_e2e_push_test.cpp 95 int64_t bucketSizeNs =
109 appUid1, bucketStartTimeNs + bucketSizeNs + 250));
111 appUid1, bucketStartTimeNs + bucketSizeNs + 350));
113 appUid1, bucketStartTimeNs + 2 * bucketSizeNs + 100));
128 bucketStartTimeNs + bucketSizeNs + 30));
132 bucketStartTimeNs + 2 * bucketSizeNs));
136 bucketStartTimeNs + 2 * bucketSizeNs + 10));
139 appUid2, bucketStartTimeNs + bucketSizeNs + 10));
143 bucketStartTimeNs + 2 * bucketSizeNs + 10));
152 processor->onDumpReport(cfgKey, bucketStartTimeNs + 3 * bucketSizeNs, false, ADB_DUMP
    [all...]
ConfigTtl_e2e_test.cpp 67 int64_t bucketSizeNs =
90 event = CreateAcquireWakelockEvent(attributions1, "wl2", bucketStartTimeNs + bucketSizeNs + 2);
94 attributions1, "wl1", bucketStartTimeNs + 25 * bucketSizeNs + 2);
97 EXPECT_EQ((int64_t)(bucketStartTimeNs + 25 * bucketSizeNs + 2 + 2 * 3600 * NS_PER_SEC),
  /frameworks/base/cmds/statsd/tests/metrics/
MaxDurationTracker_test.cpp 48 const int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
62 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs;
67 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs,
80 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, &buckets);
96 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
98 int64_t bucketEndTimeNs = bucketStartTimeNs + bucketSizeNs;
103 false, bucketStartTimeNs, bucketNum, bucketStartTimeNs, bucketSizeNs,
110 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 40, &buckets);
111 tracker.noteStopAll(bucketStartTimeNs + bucketSizeNs + 40);
115 tracker.flushIfNeeded(bucketStartTimeNs + 3 * bucketSizeNs + 40, &buckets)
    [all...]
DurationMetricProducer_test.cpp 45 int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL;
55 LogEvent event2(tagId, bucketStartTimeNs + bucketSizeNs + 2);
66 durationProducer.flushIfNeededLocked(bucketStartTimeNs + 2 * bucketSizeNs + 1);
73 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs);
74 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration);
75 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[1].mBucketStartNs);
76 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[1].mBucketEndNs);
83 int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL;
95 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 1);
97 LogEvent event4(tagId, bucketStartTimeNs + bucketSizeNs + 3)
    [all...]
OringDurationTracker_test.cpp 47 const int64_t bucketSizeNs = 30 * NS_PER_SEC;
59 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
67 bucketSizeNs, false, false, {});
75 tracker.flushIfNeeded(eventStartTimeNs + bucketSizeNs + 1, &buckets);
92 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
99 bucketSizeNs, false, false, {});
107 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, &buckets);
125 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
132 bucketSizeNs, false, false, {});
139 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, &buckets)
    [all...]
CountMetricProducer_test.cpp 42 int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL;
43 int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
44 int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
71 countProducer.flushIfNeededLocked(bucketStartTimeNs + bucketSizeNs + 1);
78 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs);
82 LogEvent event3(tagId, bucketStartTimeNs + bucketSizeNs + 2);
86 countProducer.flushIfNeededLocked(bucketStartTimeNs + 2 * bucketSizeNs + 1);
93 EXPECT_EQ(bucket2StartTimeNs + bucketSizeNs, bucketInfo2.mBucketEndNs);
97 countProducer.flushIfNeededLocked(bucketStartTimeNs + 3 * bucketSizeNs + 1);
107 int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL
    [all...]
EventMetricProducer_test.cpp 41 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
64 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
90 int64_t bucketSizeNs = 30 * 1000 * 1000 * 1000LL;
GaugeMetricProducer_test.cpp 44 const int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL;
45 const int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
46 const int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
47 const int64_t bucket4StartTimeNs = bucketStartTimeNs + 3 * bucketSizeNs;
189 EXPECT_EQ((int64_t)bucketStartTimeNs + bucketSizeNs, gaugeProducer.mCurrentBucketStartTimeNs);
258 event = make_shared<LogEvent>(tagId, bucketStartTimeNs + bucketSizeNs + 1);
463 std::make_shared<LogEvent>(tagId, bucketStartTimeNs + bucketSizeNs + 20);
478 std::make_shared<LogEvent>(tagId, bucketStartTimeNs + 2 * bucketSizeNs + 10);
494 std::make_shared<LogEvent>(tagId, bucketStartTimeNs + 3 * bucketSizeNs + 10);
ValueMetricProducer_test.cpp 44 const int64_t bucketSizeNs = TimeUnitToBucketSizeInMillis(ONE_MINUTE) * 1000000LL;
45 const int64_t bucket2StartTimeNs = bucketStartTimeNs + bucketSizeNs;
46 const int64_t bucket3StartTimeNs = bucketStartTimeNs + 2 * bucketSizeNs;
47 const int64_t bucket4StartTimeNs = bucketStartTimeNs + 3 * bucketSizeNs;
48 const int64_t bucket5StartTimeNs = bucketStartTimeNs + 4 * bucketSizeNs;
49 const int64_t bucket6StartTimeNs = bucketStartTimeNs + 5 * bucketSizeNs;
400 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, valueProducer.mCurrentBucketStartTimeNs);
652 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 2 * bucketSizeNs + 1 * NS_PER_SEC);
657 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 3 * bucketSizeNs + 1 * NS_PER_SEC);
662 = make_shared<LogEvent>(tagId, bucketStartTimeNs + 3 * bucketSizeNs + 2 * NS_PER_SEC)
    [all...]
  /frameworks/base/cmds/statsd/benchmark/
duration_metric_benchmark.cpp 137 int64_t bucketSizeNs =
164 bucketStartTimeNs + bucketSizeNs + 100));
167 bucketStartTimeNs + bucketSizeNs + 640));
169 bucketStartTimeNs + bucketSizeNs + 650));
184 {CreateAttribution(8888, "")}, "job2",bucketStartTimeNs + bucketSizeNs + 850));
187 {CreateAttribution(8888, "")}, "job1", bucketStartTimeNs + bucketSizeNs + 600));
189 {CreateAttribution(8888, "")}, "job1", bucketStartTimeNs + bucketSizeNs + 900));
199 bucketStartTimeNs + bucketSizeNs + 300));
204 bucketStartTimeNs + bucketSizeNs - 1));
209 bucketStartTimeNs + bucketSizeNs + 700))
    [all...]
  /frameworks/base/cmds/statsd/tests/anomaly/
AnomalyTracker_test.cpp 120 const int64_t bucketSizeNs = 30 * NS_PER_SEC;
121 const int32_t refractoryPeriodSec = 2 * bucketSizeNs / NS_PER_SEC;
133 int64_t eventTimestamp1 = bucketSizeNs + 11 * NS_PER_SEC;
134 int64_t eventTimestamp2 = 2 * bucketSizeNs + 12 * NS_PER_SEC;
135 int64_t eventTimestamp3 = 3 * bucketSizeNs + 13 * NS_PER_SEC;
136 int64_t eventTimestamp4 = 4 * bucketSizeNs + 14 * NS_PER_SEC;
137 int64_t eventTimestamp5 = 5 * bucketSizeNs + 5 * NS_PER_SEC;
138 int64_t eventTimestamp6 = 6 * bucketSizeNs + 16 * NS_PER_SEC;
265 const int64_t bucketSizeNs = 30 * NS_PER_SEC;
266 const int32_t refractoryPeriodSec = 2 * bucketSizeNs / NS_PER_SEC
    [all...]
  /frameworks/base/cmds/statsd/tests/
statsd_test_util.h 277 const int64_t timeBaseNs, const int64_t bucketSizeNs, T* bucket) {
278 bucket->set_start_bucket_elapsed_nanos(timeBaseNs + bucketSizeNs * bucket->bucket_num());
280 timeBaseNs + bucketSizeNs * bucket->bucket_num() + bucketSizeNs);
299 void backfillStartEndTimestampForMetrics(const int64_t timeBaseNs, const int64_t bucketSizeNs,
306 backfillStartEndTimestampForFullBucket(timeBaseNs, bucketSizeNs, bucket);
  /frameworks/base/cmds/statsd/src/metrics/duration_helper/
DurationTracker.h 66 int64_t bucketSizeNs, bool conditionSliced, bool fullLink,
73 mBucketSizeNs(bucketSizeNs),
MaxDurationTracker.h 35 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced,
OringDurationTracker.h 34 int64_t startTimeNs, int64_t bucketSizeNs, bool conditionSliced,

Completed in 4073 milliseconds

1 2