/GreenletProfiler

Abandoned, please use Yappi.

Primary LanguageCMIT LicenseMIT

GreenletProfiler

Info:Abandoned, please use Yappi
Author: A. Jesse Jiryu Davis

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

About

This was a greenlet-aware Python performance profiler, built on yappi.

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

Yappi now has Greenlet support, please use it instead.

Dependencies

  • Python 2.6, 2.7, or 3.2 or later.
  • Greenlet.

Example

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')