pyqtgraph/pyqtgraph/exporters
Antony Lee f136b33033 Profilers controllable via PYQTGRAPHPROFILE.
A new function profiling system is implemented.  Most importantly, this
allows one to profile various internal functions directly by setting the
`PYQTGRAPHPROFILE` environment variable to a comma separated list of
function and method names, e.g.

    PYQTGRAPHPROFILE=functions.makeARGB,ImageItem.render \
        python -mexamples

Specifically, items in `PYQTGRAPHPROFILE` must be of the form
`classname.methodname` or `dotted_module_name.functionname`, with the
initial "pyqtgraph." stripped from the dotted module name.

Moreover, the overhead of inactive profilers has been kept minimal: an
introspective check of the caller's name (only if `PYQTGRAPHPROFILE` is
set) and a trivial function (not method) call per profiler call.

The new profilers rely on `sys._getframe` to find the caller's name,
although the previous system (passing the caller's name explicitely)
could certainly have been kept instead.

Finally the API of profilers has been changed: register a
profiling point simply by calling the profiler, and profilers are
automatically flushed on garbage collection.  See the docstring of
`pyqtgraph.debug.Profiler` for more details.
2013-11-27 09:57:46 -08:00
..
__init__.py Reorganized directory structure to be more standard 2012-12-25 00:43:31 -05:00
CSVExporter.py When exporting, prefer to select PlotItem rather than ViewBox if possible 2013-02-24 14:31:11 -05:00
Exporter.py Python3 bugfixes 2013-08-21 10:40:19 -06:00
ImageExporter.py Added ImageExporter error message for zero-size export 2013-09-19 12:13:16 -04:00
Matplotlib.py Reorganized directory structure to be more standard 2012-12-25 00:43:31 -05:00
PrintExporter.py Reorganized directory structure to be more standard 2012-12-25 00:43:31 -05:00
SVGExporter.py Profilers controllable via PYQTGRAPHPROFILE. 2013-11-27 09:57:46 -08:00