Sampling profiler for Python programs Usage: py-spy Commands: record Records stack trace information to a flamegraph, speedscope or raw file top Displays a top like view of functions consuming CPU dump Dumps stack traces for a target program to stdout help Print this message or the help of the given subcommand(s) Options: -h, --help Print help -V, --version Print version