Python profiling tools using cProfile and pstats
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file profiling_tools-0.0.8.tar.gz
.
File metadata
- Download URL: profiling_tools-0.0.8.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15bc3a0dfbec90c3a95e7f7909ec7f70acacc42174c2dab1a19991c75f371a1c |
|
MD5 | af1202967e899b1f8bb6ab1c241ddd18 |
|
BLAKE2b-256 | 782f372e17e27151fcdbd6dcecc123204868781ccb5b6bca724d5e46cb4aa9de |
Provenance
The following attestation bundles were made for profiling_tools-0.0.8.tar.gz
:
Publisher:
release.yaml
on TheNewThinkTank/profiling-tools
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
profiling_tools-0.0.8.tar.gz
- Subject digest:
15bc3a0dfbec90c3a95e7f7909ec7f70acacc42174c2dab1a19991c75f371a1c
- Sigstore transparency entry: 146135633
- Sigstore integration time:
- Predicate type:
File details
Details for the file profiling_tools-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: profiling_tools-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae1a5c0d1633a4c56f73d324e95f3c20117711f47b609a9a0cbcfe0693dde7c |
|
MD5 | f2dd41f327d8eb9c829428354b79ece2 |
|
BLAKE2b-256 | 0bb2a840fa091e18314e79cc3c15f60b361a40cc06f94e90aa16318adda979e9 |
Provenance
The following attestation bundles were made for profiling_tools-0.0.8-py3-none-any.whl
:
Publisher:
release.yaml
on TheNewThinkTank/profiling-tools
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
profiling_tools-0.0.8-py3-none-any.whl
- Subject digest:
3ae1a5c0d1633a4c56f73d324e95f3c20117711f47b609a9a0cbcfe0693dde7c
- Sigstore transparency entry: 146135634
- Sigstore integration time:
- Predicate type: