Lines Matching refs:ringbuffer
42 if (ringbuffer.empty()) in update_cumulative()
48 std::chrono::nanoseconds(now - ringbuffer.front().start_timestamp)); in update_cumulative()
51 auto const increment = ringbuffer.front().histogram.data[i] * delta.count(); in update_cumulative()
52 …if (CC_UNLIKELY((bins[i] + increment < bins[i]) || (increment < ringbuffer.front().histogram.data[… in update_cumulative()
65 if (ringbuffer.size() == rb_max_size) in insert()
66 ringbuffer.pop_back(); in insert()
67 if (!ringbuffer.empty()) in insert()
68 ringbuffer.front().end_timestamp = now; in insert()
69 ringbuffer.push_front({frame, now, 0}); in insert()
77 if (ringbuffer.size() > rb_max_size) in resize()
78 ringbuffer.resize(rb_max_size); in resize()
91 return collect_max(ringbuffer.size(), lk); in collect_ringbuffer_all()
97 return collect_max_after(timestamp, ringbuffer.size(), lk); in collect_after()
113 auto collect_first = std::min(static_cast<size_t>(max_frames), ringbuffer.size()); in collect_max()
118 for (auto it = ringbuffer.begin(); it != ringbuffer.begin() + collect_first; it++) { in collect_max()
120 if (it == ringbuffer.begin() ) { in collect_max()
135 ringbuffer.begin(), ringbuffer.end(), HistogramEntry{{}, timestamp, 0}, in collect_max_after()
138 auto collect_last = std::min(std::distance(ringbuffer.begin(), ts_filter_begin), in collect_max_after()