Skip to content

Commit 17252ec

Browse files
committed
Fix sampling rgument
1 parent a19f3ea commit 17252ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/profiling/sampling/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ def _validate_args(args, parser):
643643
return
644644

645645
# Warn about blocking mode with aggressive sampling intervals
646-
if args.blocking and args.interval < 100:
646+
if args.blocking and args.sample_interval_usec < 100:
647647
print(
648-
f"Warning: --blocking with a {args.interval} µs interval will stop all threads "
649-
f"{1_000_000 // args.interval} times per second. "
650-
"Consider using --interval 1000 or higher to reduce overhead.",
648+
f"Warning: --blocking with a {args.sample_interval_usec} µs interval will stop all threads "
649+
f"{1_000_000 // args.sample_interval_usec} times per second. "
650+
"Consider using --sampling-rate 10khz or lower to reduce overhead.",
651651
file=sys.stderr
652652
)
653653

0 commit comments

Comments
 (0)