9#include <userver/tracing/scope_time.hpp>
11USERVER_NAMESPACE_BEGIN
28 std::string scope_name_;
48 const std::size_t every_iterations_;
49 std::size_t iterations_{0};
63 void Relax(std::uint64_t bytes_processed);
71 std::uint64_t check_time_after_bytes_;
72 std::uint64_t total_bytes_{0};
73 std::uint64_t bytes_since_last_time_check_{0};
74 std::chrono::steady_clock::time_point last_yield_time_;