Skip to content

Commit 52f1cb8

Browse files
committed
Call debugLogScoreHistogram only if debug level is at least 6
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
1 parent 303934f commit 52f1cb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/V3EmitMk.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ class EmitMk final {
8282
// Debug logging: prints scores histogram
8383
static void debugLogScoreHistogram(const std::vector<std::int64_t>& sortedScores) {
8484
constexpr int LOG_LEVEL = 6;
85-
86-
if (debug() < LOG_LEVEL) return;
87-
8885
constexpr int MAX_BAR_LENGTH = 80;
8986
constexpr int MAX_INTERVALS_NUM = 60;
9087

@@ -312,7 +309,7 @@ class EmitMk final {
312309
[](const FilenameWithScore& inputFile) { return inputFile.m_score; });
313310
std::sort(sortedScores.begin(), sortedScores.end());
314311

315-
debugLogScoreHistogram(sortedScores);
312+
if (debug() >= 6) debugLogScoreHistogram(sortedScores);
316313

317314
// Input files with a score exceeding this value are excluded from concatenation.
318315
const std::int64_t concatenableFileMaxScore = totalScore / totalBucketsNum / 2;

0 commit comments

Comments
 (0)