py-spy

A sampling profiler for Python programs.
More information.
py-spy top --pid {pid}
py-spy top -- python {path/to/file.py}
py-spy record -o {path/to/profile.svg} --pid {pid}
py-spy dump --pid {pid}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY