Lines Matching refs:rb

53 void insertFrameIncrementTimeline(histogram::Ringbuffer &rb, TickingTimeKeeper &tk,  in insertFrameIncrementTimeline()  argument
55 rb.insert(frame); in insertFrameIncrementTimeline()
74 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in createFilledRingbuffer() local
75 insertFrameIncrementTimeline(*rb, *tk, frame0); in createFilledRingbuffer()
76 insertFrameIncrementTimeline(*rb, *tk, frame1); in createFilledRingbuffer()
77 insertFrameIncrementTimeline(*rb, *tk, frame2); in createFilledRingbuffer()
78 insertFrameIncrementTimeline(*rb, *tk, frame3); in createFilledRingbuffer()
79 return rb; in createFilledRingbuffer()
108 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F() local
110 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
118 auto rb = histogram::Ringbuffer::create(numInsertions, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
125 insertFrameIncrementTimeline(*rb, *tk, frame); in TEST_F()
126 insertFrameIncrementTimeline(*rb, *tk, frame); in TEST_F()
127 insertFrameIncrementTimeline(*rb, *tk, frame); in TEST_F()
129 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
148 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
150 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
152 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
156 insertFrameIncrementTimeline(*rb, *tk, frame1); in TEST_F()
157 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
164 auto rb = histogram::Ringbuffer::create(3, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
166 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
167 insertFrameIncrementTimeline(*rb, *tk, frame1); in TEST_F()
168 insertFrameIncrementTimeline(*rb, *tk, frame2); in TEST_F()
170 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
174 insertFrameIncrementTimeline(*rb, *tk, frame3); in TEST_F()
175 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
179 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
180 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
186 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TickingTimeKeeper>()); in TEST_F() local
187 EXPECT_FALSE(rb->resize(0)); in TEST_F()
192 auto rb = createFilledRingbuffer(tk); in TEST_F() local
194 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
198 auto rc = rb->resize(2); in TEST_F()
200 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
204 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
205 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
212 auto rb = histogram::Ringbuffer::create(2, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
214 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
215 insertFrameIncrementTimeline(*rb, *tk, frame1); in TEST_F()
217 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
221 auto rc = rb->resize(3); in TEST_F()
223 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
227 insertFrameIncrementTimeline(*rb, *tk, frame2); in TEST_F()
228 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
232 insertFrameIncrementTimeline(*rb, *tk, frame3); in TEST_F()
233 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
239 auto rb = createFilledRingbuffer(std::make_shared<TickingTimeKeeper>()); in TEST_F() local
241 std::tie(numFrames, bins) = rb->collect_after(toNsecs(1500us)); 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()
255 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
256 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
257 insertFrameIncrementTimeline(*rb, *tk, frame1); in TEST_F()
258 insertFrameIncrementTimeline(*rb, *tk, frame2); in TEST_F()
259 rb->insert(frame3); in TEST_F()
260 rb->insert(frame4); in TEST_F()
263 std::tie(numFrames, bins) = rb->collect_after(toNsecs(3ms)); in TEST_F()
269 auto rb = createFilledRingbuffer(std::make_shared<TickingTimeKeeper>()); in TEST_F() local
271 std::tie(numFrames, bins) = rb->collect_max(2); in TEST_F()
275 std::tie(numFrames, bins) = rb->collect_max(0); in TEST_F()
279 std::tie(numFrames, bins) = rb->collect_max(3); in TEST_F()
283 std::tie(numFrames, bins) = rb->collect_max(8); in TEST_F()
289 auto rb = createFilledRingbuffer(std::make_shared<TickingTimeKeeper>()); in TEST_F() local
291 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(1500us), 1); in TEST_F()
295 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(2500us), 0); in TEST_F()
299 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(10ms), 100); in TEST_F()
303 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(0ns), 10); in TEST_F()
309 auto rb = createFilledRingbuffer(std::make_shared<TickingTimeKeeper>()); in TEST_F() local
311 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 1); in TEST_F()
315 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
319 rb->resize(2); in TEST_F()
320 std::tie(numFrames, bins) = rb->collect_max_after(toNsecs(500us), 10); in TEST_F()
327 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
328 insertFrameIncrementTimeline(*rb, *tk, frame0); in TEST_F()
330 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
334 insertFrameIncrementTimeline(*rb, *tk, frame1); in TEST_F()
335 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()
339 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
342 rb->insert(frame2); in TEST_F()
346 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
353 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
361 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
362 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
368 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
369 insertFrameIncrementTimeline(*rb, *tk, frame_saturate); in TEST_F()
372 std::tie(numFrames, bins) = rb->collect_cumulative(); in TEST_F()
380 auto rb = histogram::Ringbuffer::create(numInsertions, std::make_unique<TimeKeeperWrapper>(tk)); in TEST_F() local
388 rb->insert(frame0); in TEST_F()
390 rb->insert(frame1); in TEST_F()
392 rb->insert(frame2); in TEST_F()
394 rb->insert(frame3); in TEST_F()
397 std::tie(numFrames, bins) = rb->collect_ringbuffer_all(); in TEST_F()