🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

profiling-tools

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

profiling-tools

Python profiling tools using cProfile and pstats

0.0.14
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts