FuncProfiler Package Documentation

Package documentation for FuncProfiler, a Python library for identifying bottlenecks in code. It includes function profiling, data exports, logging, and line-by-line profiling for more control.

Changelog

  • 1.1.0 (Latest):

    • Added support for 2 new export formats: yaml and toml.

    • Exports now include more information: peak memory usage, timestamp, arguments, return value, filepath, line number, and docstring.

    • Added enabled and log_level options to the decorators.

    • Improved export formats for better readability.

  • 1.0.2: Created 2 new export formats: xml, md for both function profiling and line-by-line profiling.

  • 1.0.1: Updated PYPI project description.

  • 1.0.0: Initial release.

Installation

You can install FuncProfiler using PyPi, please make sure that you are using Python 3.6 or later before installing FuncProfiler:

pip install funcprofiler

Example Usage

Function Profiling

Line-by-Line Profiling

FuncProfiler can be added to any function using the callable format: @funcprofiler_function_name(expected_arguments).

Last updated

Was this helpful?