Skip to content

Commit 56966b0

Browse files
authored
Merge pull request #234 from smehringer/display_layout_print_user_bins
[FEATURE] Display layout sizes: Also print number of user bins.
2 parents 4b4fb96 + 1e3e7b3 commit 56966b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/util/display_layout/sizes.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ struct per_level_stats
9494
}
9595
}
9696

97-
void print(std::ostream & stream) const
97+
void print(std::ostream & stream, size_t const number_of_user_bins) const
9898
{
9999
stream << std::fixed << std::setprecision(2);
100100
stream << "# Levels: " << number_of_levels << '\n';
101+
stream << "# User bins: " << number_of_user_bins << '\n';
101102
stream << "LEVEL\t" //
102103
<< "BIT_SIZE\t" //
103104
<< "IBFS\t" //
@@ -331,7 +332,7 @@ void execute_general_stats(config const & cfg)
331332
if (!output_stream.good() || !output_stream.is_open())
332333
throw std::logic_error{"Could not open file " + cfg.output.string() + " for reading"};
333334

334-
level_stats.print(output_stream);
335+
level_stats.print(output_stream, hibf_layout.user_bins.size());
335336
}
336337

337338
void execute_sizes(config const & cfg)

0 commit comments

Comments
 (0)