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.10.tar.gz
.
File metadata
- Download URL: profiling_tools-0.0.10.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3a98579a361e33c60bf4986023f685102b5f7d7f830262be6c1d3476387151 |
|
MD5 | 59c772c7304d1e610ef2af7bb701cbcf |
|
BLAKE2b-256 | a2640eb8a14c8ef7c6048b3c41c6a4d0bd323033d8e653f6693b3c14cba6960d |
Provenance
The following attestation bundles were made for profiling_tools-0.0.10.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.10.tar.gz
- Subject digest:
4e3a98579a361e33c60bf4986023f685102b5f7d7f830262be6c1d3476387151
- Sigstore transparency entry: 148432375
- Sigstore integration time:
- Predicate type:
File details
Details for the file profiling_tools-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: profiling_tools-0.0.10-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | f922d4f7576b49db1defa5cd251b304fe82138510666e643ba9bc8b144b41e43 |
|
MD5 | 5266741f37ae47899dd25fe375b346e5 |
|
BLAKE2b-256 | 72c6c2bc3596ed1f27477908dde7806ef7e9e824c8e49894cd28fd59ab09efb8 |
Provenance
The following attestation bundles were made for profiling_tools-0.0.10-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.10-py3-none-any.whl
- Subject digest:
f922d4f7576b49db1defa5cd251b304fe82138510666e643ba9bc8b144b41e43
- Sigstore transparency entry: 148432377
- Sigstore integration time:
- Predicate type: