Skip to main content

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

profiling_tools-0.0.8.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

profiling_tools-0.0.8-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for profiling_tools-0.0.8.tar.gz
Algorithm Hash digest
SHA256 15bc3a0dfbec90c3a95e7f7909ec7f70acacc42174c2dab1a19991c75f371a1c
MD5 af1202967e899b1f8bb6ab1c241ddd18
BLAKE2b-256 782f372e17e27151fcdbd6dcecc123204868781ccb5b6bca724d5e46cb4aa9de

See more details on using hashes here.

Provenance

The following attestation bundles were made for profiling_tools-0.0.8.tar.gz:

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations:

File details

Details for the file profiling_tools-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for profiling_tools-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae1a5c0d1633a4c56f73d324e95f3c20117711f47b609a9a0cbcfe0693dde7c
MD5 f2dd41f327d8eb9c829428354b79ece2
BLAKE2b-256 0bb2a840fa091e18314e79cc3c15f60b361a40cc06f94e90aa16318adda979e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for profiling_tools-0.0.8-py3-none-any.whl:

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page