Skip to content

Commit 1ac0d3e

Browse files
committed
Add extra timing stats
1 parent 0eb1896 commit 1ac0d3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/wily/commands/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
TODO : Convert .gitignore to radon ignore patterns to make the build more efficient.
55
66
"""
7+
from future.backports.datetime import datetime
78

89
import os
910
import pathlib
@@ -86,11 +87,16 @@ def run_operators_parallel(
8687

8788
# Run all operators in parallel on all files using Rust/rayon
8889
# This also computes directory-level aggregates
90+
time_start = datetime.now()
8991
parallel_results = analyze_files_parallel(file_paths, operator_names)
92+
time_end = datetime.now()
93+
logger.debug("Completed parallel analysis in %s seconds", (time_end - time_start).strftime("%s.%f"))
9094

9195
# Transform results into the expected format per operator
9296
results: dict[str, dict[str, Any]] = {name: {} for name in operator_names}
9397

98+
logger.debug("Found %s results from parallel analysis", len(parallel_results))
99+
94100
for file_path, file_data in parallel_results.items():
95101
# Convert absolute paths to relative, but leave directory paths as-is
96102
if os.path.isabs(file_path):

0 commit comments

Comments
 (0)