We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19f3ea commit 17252ecCopy full SHA for 17252ec
1 file changed
Lib/profiling/sampling/cli.py
@@ -643,11 +643,11 @@ def _validate_args(args, parser):
643
return
644
645
# Warn about blocking mode with aggressive sampling intervals
646
- if args.blocking and args.interval < 100:
+ if args.blocking and args.sample_interval_usec < 100:
647
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.",
+ f"Warning: --blocking with a {args.sample_interval_usec} µs interval will stop all threads "
+ f"{1_000_000 // args.sample_interval_usec} times per second. "
+ "Consider using --sampling-rate 10khz or lower to reduce overhead.",
651
file=sys.stderr
652
)
653
0 commit comments