Lines Matching refs:bins

95   std::array<uint64_t, HIST_V_SIZE> bins;  member in RingbufferTestCases
109 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
111 EXPECT_THAT(bins, Each(0)); in TEST_F()
128 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
130 ASSERT_THAT(bins.size(), Eq(HIST_V_SIZE)); in TEST_F()
131 for (auto i = 0u; i < bins.size(); i++) { in TEST_F()
132 EXPECT_THAT(bins[i], Eq(toMs(3ms) * i)); in TEST_F()
151 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
153 EXPECT_THAT(bins, Each(fill_frame0)); in TEST_F()
156 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
158 EXPECT_THAT(bins, Each(fill_frame1)); in TEST_F()
169 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
171 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2)); in TEST_F()
174 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
176 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
179 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
181 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3 + fill_frame0)); in TEST_F()
193 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
195 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
199 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
201 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
204 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
206 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame3)); in TEST_F()
216 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
218 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
222 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
224 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
227 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
229 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2)); in TEST_F()
232 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
234 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
240 std::tie(numFrames, bins) = rb->collect_after(toNsecs(1500us)); in TEST_F()
242 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
244 std::tie(numFrames, bins) = rb->collect_after(toNsecs(45000us)); in TEST_F()
247 std::tie(numFrames, bins) = rb->collect_after(0); in TEST_F()
249 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
262 std::tie(numFrames, bins) = rb->collect_after(toNsecs(3ms)); in TEST_F()
264 EXPECT_THAT(bins, Each(fill_frame4)); in TEST_F()
270 std::tie(numFrames, bins) = rb->collect_max(2); in TEST_F()
272 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
274 std::tie(numFrames, bins) = rb->collect_max(0); in TEST_F()
276 EXPECT_THAT(bins, Each(0)); in TEST_F()
278 std::tie(numFrames, bins) = rb->collect_max(3); in TEST_F()
280 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
282 std::tie(numFrames, bins) = rb->collect_max(8); in TEST_F()
284 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
290 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(1500us), 1); in TEST_F()
292 EXPECT_THAT(bins, Each(fill_frame3)); in TEST_F()
294 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(2500us), 0); in TEST_F()
296 EXPECT_THAT(bins, Each(0)); in TEST_F()
298 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(10ms), 100); in TEST_F()
300 EXPECT_THAT(bins, Each(0)); in TEST_F()
302 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(0ns), 10); in TEST_F()
304 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
310 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 1); in TEST_F()
312 EXPECT_THAT(bins, Each(fill_frame3)); in TEST_F()
314 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
316 EXPECT_THAT(bins, Each(fill_frame1 + fill_frame2 + fill_frame3)); in TEST_F()
319 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
321 EXPECT_THAT(bins, Each(fill_frame2 + fill_frame3)); in TEST_F()
329 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
331 EXPECT_THAT(bins, Each(fill_frame0)); in TEST_F()
334 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
336 EXPECT_THAT(bins, Each(fill_frame1)); in TEST_F()
338 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
340 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1)); in TEST_F()
345 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
347 EXPECT_THAT(bins, Each(fill_frame0 + fill_frame1 + in TEST_F()
353 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
356 bins, in TEST_F()
365 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
375 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
377 EXPECT_THAT(bins, Each(std::numeric_limits<uint64_t>::max())); in TEST_F()
400 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
402 ASSERT_THAT(bins.size(), Eq(HIST_V_SIZE)); in TEST_F()
405 for (auto i = 0u; i < bins.size(); i++) { in TEST_F()
406 EXPECT_THAT(bins[i], Eq(expected_weight)); in TEST_F()