semvec/pypi-packages huggingface dataset:
GreenletProfiler 0.1
Greenlet-aware Python performance profiler, built on yappi.
License: http://www.apache.org/licenses/LICENSE-2.0
Keywords: greenlet gevent profiler asynchronous

================
GreenletProfiler
================

:Info: Greenlet-aware Python performance profiler, built on yappi.
:Author: A\. Jesse Jiryu Davis

Documentation: http://GreenletProfiler.readthedocs.org/

About
=====

A low-overhead deterministic performance profiler, similar to cProfile or
`Yappi`_, which understands greenlet context-switches. Suitable for
profiling Gevent-based applications.

.. _Yappi: https://code.google.com/p/yappi/

Dependencies
============

* Python 2.6, 2.7, or 3.2 or later.
* `Greenlet`_.

.. _Greenlet: http://greenlet.readthedocs.org

Example
=======

.. code-block:: python

    GreenletProfiler.set_clock_type('cpu')
    GreenletProfiler.start()
    my_function()
    GreenletProfiler.stop()
    stats = GreenletProfiler.get_func_stats()
    stats.print_all()
    stats.save('profile.callgrind', type='callgrind')