merge pass info
This commit is contained in:
parent
e7eef77c57
commit
c24e415900
1 changed files with 1 additions and 0 deletions
|
|
@ -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_";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue