Skip to content

Commit

Permalink
[tmp debug timing]
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Aug 18, 2023
1 parent 4b441cb commit 1fcb6c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ def cli(
setup_file_found = False
for src_file in src_files:
is_setup_file = os.path.basename(src_file) in METADATA_FILENAMES

import time

start_t = time.perf_counter()

if src_file == "-":
# pip requires filenames and not files. Since we want to support
# piping from stdin, we need to briefly save the input from stdin
Expand Down Expand Up @@ -390,6 +395,9 @@ def cli(
)
)

end_t = time.perf_counter()
print(f"req {src_file} took {end_t - start_t} seconds")

# Parse all constraints from `--constraint` files
for filename in constraint:
constraints.extend(
Expand Down

0 comments on commit 1fcb6c9

Please sign in to comment.