78 if (!is_enabled_)
return;
79 ThrottlingData& data = id_to_throttling_data_[id];
81 if (data.num_last_skipped_logs > 0) {
84 " [skipped_logs=", data.num_last_skipped_logs,
"]"));
88 data.UpdateWhenDisplayed();
90 data.num_last_skipped_logs++;
91 data.last_skipped_message = message;
96 if (!is_enabled_)
return;
100 for (
int id = 0;
id < id_to_throttling_data_.size(); ++id) {
101 ThrottlingData& data = id_to_throttling_data_[id];
102 if (data.num_last_skipped_logs == 0)
continue;
103 if (ignore_rates || RateIsOk(data)) {
106 absl::StrCat(data.last_skipped_message,
" [skipped_logs=",
107 data.num_last_skipped_logs - 1,
"]"));
108 data.UpdateWhenDisplayed();
114 time_limit_->AdvanceDeterministicTime(work_);
116 time_limit_->GetElapsedDeterministicTime() - dtime_at_start_;
118 std::string counter_string;
119 for (
const auto& [counter_name, count] : counters_) {
120 absl::StrAppend(&counter_string,
" #", counter_name,
"=",
125 if (override_logging_ ? log_when_override_ : logger_->LoggingIsEnabled()) {
128 absl::StrCat(absl::StrFormat(
" %.2es", timer_.Get()),
129 absl::StrFormat(
" %.2ed", dtime),
131 counter_string,
" ", absl::StrJoin(extra_infos_,
" ")));