Lines Matching refs:bins
95 std::array<uint64_t, HIST_V_SIZE> bins; member in RingbufferTestCases
110 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
112 EXPECT_THAT(bins, Each(0)); in TEST_F()
129 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
131 ASSERT_THAT(bins.size(), Eq(HIST_V_SIZE)); in TEST_F()
132 for (auto i = 0u; i < bins.size(); i++) { in TEST_F()
133 EXPECT_THAT(bins[i], Eq(toMs(3ms) * i)); in TEST_F()
152 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
154 EXPECT_THAT(bins, Each(fill_frame0)); in TEST_F()
157 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
159 EXPECT_THAT(bins, Each(fill_frame1)); in TEST_F()
170 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
172 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2)); in TEST_F()
175 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
177 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
180 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
182 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3 + fill_frame0)); in TEST_F()
194 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
196 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
200 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
202 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
205 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
207 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame3)); in TEST_F()
217 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
219 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
223 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
225 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
228 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
230 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2)); in TEST_F()
233 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
235 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
241 std::tie(numFrames, bins) = rb->collect_after(toNsecs(1500us)); in TEST_F()
243 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
245 std::tie(numFrames, bins) = rb->collect_after(toNsecs(45000us)); in TEST_F()
248 std::tie(numFrames, bins) = rb->collect_after(0); in TEST_F()
250 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
263 std::tie(numFrames, bins) = rb->collect_after(toNsecs(3ms)); in TEST_F()
265 EXPECT_THAT(bins, Each(fill_frame4)); in TEST_F()
271 std::tie(numFrames, bins) = rb->collect_max(2); in TEST_F()
273 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
275 std::tie(numFrames, bins) = rb->collect_max(0); in TEST_F()
277 EXPECT_THAT(bins, Each(0)); in TEST_F()
279 std::tie(numFrames, bins) = rb->collect_max(3); in TEST_F()
281 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
283 std::tie(numFrames, bins) = rb->collect_max(8); in TEST_F()
285 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
291 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(1500us), 1); in TEST_F()
293 EXPECT_THAT(bins, Each(fill_frame3)); in TEST_F()
295 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(2500us), 0); in TEST_F()
297 EXPECT_THAT(bins, Each(0)); in TEST_F()
299 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(10ms), 100); in TEST_F()
301 EXPECT_THAT(bins, Each(0)); in TEST_F()
303 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(0ns), 10); in TEST_F()
305 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
311 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 1); in TEST_F()
313 EXPECT_THAT(bins, Each(fill_frame3)); in TEST_F()
315 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
317 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
320 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
322 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
330 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
332 EXPECT_THAT(bins, Each(fill_frame0)); in TEST_F()
335 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
337 EXPECT_THAT(bins, Each(fill_frame1)); in TEST_F()
339 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
341 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
346 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
348 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + (fill_frame2 * in TEST_F()
353 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
355 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + (fill_frame2 * in TEST_F()
362 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
372 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
374 EXPECT_THAT(bins, Each(std::numeric_limits<uint64_t>::max())); in TEST_F()
397 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
399 ASSERT_THAT(bins.size(), Eq(HIST_V_SIZE)); in TEST_F()
402 for (auto i = 0u; i < bins.size(); i++) { in TEST_F()
403 EXPECT_THAT(bins[i], Eq(expected_weight)); in TEST_F()