| 611 | } |
| 612 | |
| 613 | inline auto |
| 614 | EThread::Metrics::Slice::record_event_count(int count) -> self_type & |
| 615 | { |
| 616 | if (count < _events._min) { |
| 617 | _events._min = count; |
| 618 | } |
| 619 | if (count > _events._max) { |
| 620 | _events._max = _count; |
| 621 | } |
| 622 | _events._total += count; |
| 623 | return *this; |
| 624 | } |
| 625 | |
| 626 | inline auto |
| 627 | EThread::Metrics::Slice::record_drain_queue(ink_hrtime drain_queue) -> self_type & |