Metadata-Version: 2.1
Name: profiling-tools
Version: 0.0.8
Summary: Python profiling tools using cProfile and pstats
Author: Gustav Rasmussen
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
Requires-Dist: pandas (>=2.2.3,<3.0.0)
Requires-Dist: pytest (>=8.3.3,<9.0.0)
Description-Content-Type: text/markdown

# profiling-tools

Python profiling tools using **cProfile** and **pstats**

## Installation

```BASH
pip install profiling-tools
```

## Usage example

Importing

```Python
from profiling_tools.profiling_utils import profile
```

Usage as decorator

```Python
@profile
def some_function():
    ...
```

Running your function `some_function` with the `profile` decorator
produces a file `stats/some_function.stats` containing the results of the profiling
created with cProfile.
This file can then be analyzed and visualized using the `analyze_stats` module.

<!--
## Create a new release

example:

```BASH
git tag 0.0.1
git push origin --tags
```

release a patch:

```BASH
poetry version patch
```

then `git commit`, `git push` and

```BASH
git tag 0.0.2
git push origin --tags
```
-->

