A Sampling Profiler for Python
py-spy-kw is a project forked from benfred/py-spy (https://github.com/Rosyuku/py-spy/releases/tag/v0.3.3).
Prebuilt binary wheels can be installed from PyPI with:
pip install py-spy-kw
py-spy-kw supports additional one subcommand log which can output stack trace jsonfiles of python process automatically every sampling. Following code is a sample command that launches myprogram.py and outputs stack trace jsonfiles to ./log 10 times per second until the process ends.
py-spy-kw log -o ./log -r 10 -- python myprogram.py
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for py_spy_kw-0.1.4-py2.py3-none-win_amd64.whl
Hashes for py_spy_kw-0.1.4-py2.py3-none-manylinux1_x86_64.whl