Skip to content

TheNewThinkTank/profiling-tools

Repository files navigation

PyPI Downloads CI codecov commit activity GitHub repo size

profiling-tools

Python profiling tools using cProfile and pstats

Installation

pip install profiling-tools

Usage example

Importing

from profiling_tools.profiling_utils import profile

Usage as decorator

@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.

About

Python profiling tools using cProfile and pstats

Resources

License

Stars

Watchers

Forks

Packages

No packages published