Metadata-Version: 2.0
Name: py-spy-kw
Version: 0.1.4
Summary: A Sampling Profiler for Python
Home-page: https://github.com/Rosyuku/py-spy
Author: Rosyuku
Author-email: kw.Rosyuku@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities

py-spy-kw: Sampling profiler for Python programs
================================================

py-spy-kw is a project forked from benfred/py-spy
(https://github.com/Rosyuku/py-spy/releases/tag/v0.3.3).

Installation
------------

Prebuilt binary wheels can be installed from PyPI with:

::

    pip install py-spy-kw

Usage
-----

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.

.. code:: bash

    py-spy-kw log -o ./log -r 10 -- python myprogram.py

.. figure:: ./images/log.png
   :alt: log output

   log output


