MCPcopy Create free account
hub / github.com/apache/trafficserver / record_io_stats

Method record_io_stats

include/iocore/eventsystem/EThread.h:637–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637inline auto
638EThread::Metrics::Slice::record_io_stats(ink_hrtime io_wait, ink_hrtime io_work) -> self_type &
639{
640 if (io_wait > 0) {
641 if (io_wait > _duration._max_io_wait) {
642 _duration._max_io_wait = io_wait;
643 }
644 }
645 if (io_work > 0) {
646 _duration._last_io_work = io_work;
647 if (io_work > _duration._max_io_work) {
648 _duration._max_io_work = io_work;
649 }
650 }
651 return *this;
652}
653
654inline EThread::Metrics::Slice *
655EThread::Metrics::prev_slice(EThread::Metrics::Slice *current)

Callers 1

waitForActivityMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected