Skip to content

Commit

Permalink
log more info for each scan
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Oct 28, 2024
1 parent 7e8631b commit 5c28222
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/jogasaki/executor/process/impl/ops/scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ operation_status scan::operator()( //NOLINT(readability-function-cognitive-comp
std::chrono::duration_cast<std::chrono::milliseconds>(current_time - previous_time);
if (elapsed_time.count() >= scan_yield_interval) {
++ctx.yield_count_;
VLOG_LP(log_trace_fine) << "scan operator yields count:" << ctx.yield_count_
<< " loop_count:" << loop_count;
VLOG_LP(log_trace_fine
) << "scan operator yields count:"
<< ctx.yield_count_ << " loop_count:" << loop_count << " elapsed(us):"
<< std::chrono::duration_cast<std::chrono::microseconds>(current_time - previous_time).count();

return {operation_status_kind::yield};
}
}
Expand Down

0 comments on commit 5c28222

Please sign in to comment.