Skip to content

Commit f7c8a6b

Browse files
committed
Update function_ranker.py
1 parent fd1e492 commit f7c8a6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codeflash/benchmarking/function_ranker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pathlib import Path
44
from typing import TYPE_CHECKING
55

6-
from codeflash.cli_cmds.console import logger
6+
from codeflash.cli_cmds.console import console, logger
77
from codeflash.code_utils.config_consts import DEFAULT_IMPORTANCE_THRESHOLD
88
from codeflash.discovery.functions_to_optimize import FunctionToOptimize
99
from codeflash.tracing.profile_stats import ProfileStats
@@ -128,13 +128,14 @@ def rerank_and_filter_functions(self, functions_to_optimize: list[FunctionToOpti
128128
if importance >= DEFAULT_IMPORTANCE_THRESHOLD:
129129
important_functions.append(func)
130130
else:
131-
logger.info(
131+
logger.debug(
132132
f"Filtering out function {func.qualified_name} with importance "
133133
f"{importance:.2%} (below threshold {DEFAULT_IMPORTANCE_THRESHOLD:.2%})"
134134
)
135135

136136
logger.info(
137137
f"Filtered down to {len(important_functions)} important functions from {len(functions_to_optimize)} total functions"
138138
)
139+
console.rule()
139140

140141
return self.rank_functions(important_functions)

0 commit comments

Comments
 (0)