merge pass info

This commit is contained in:
bronku 2025-11-17 17:37:34 +01:00
parent e7eef77c57
commit c24e415900

View file

@ -150,6 +150,7 @@ bool MergeSorter::sort_file(const std::string& input_file, const std::string& ou
while (run_count > 1) { while (run_count > 1) {
run_count = merge_pass(current_dir, next_dir, run_count); run_count = merge_pass(current_dir, next_dir, run_count);
std::cout << "completed merge pass " << phases_ << ", disk reads: " << disk_reads_ << ", disk writes: " << disk_writes_ << '\n';
phases_++; phases_++;
current_dir = next_dir; current_dir = next_dir;
next_dir = tmp_dir_ + "/pass" + std::to_string(phases_) + "/run_"; next_dir = tmp_dir_ + "/pass" + std::to_string(phases_) + "/run_";