Skip to main content

Python profiling tools using cProfile and pstats

Project description

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.

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.10.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

profiling_tools-0.0.10-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for profiling_tools-0.0.10.tar.gz
Algorithm Hash digest
SHA256 4e3a98579a361e33c60bf4986023f685102b5f7d7f830262be6c1d3476387151
MD5 59c772c7304d1e610ef2af7bb701cbcf
BLAKE2b-256 a2640eb8a14c8ef7c6048b3c41c6a4d0bd323033d8e653f6693b3c14cba6960d

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations:

File details

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

File metadata

File hashes

Hashes for profiling_tools-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f922d4f7576b49db1defa5cd251b304fe82138510666e643ba9bc8b144b41e43
MD5 5266741f37ae47899dd25fe375b346e5
BLAKE2b-256 72c6c2bc3596ed1f27477908dde7806ef7e9e824c8e49894cd28fd59ab09efb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for profiling_tools-0.0.10-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