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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

profiling_tools-0.0.13-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file profiling_tools-0.0.13.tar.gz.

File metadata

  • Download URL: profiling_tools-0.0.13.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for profiling_tools-0.0.13.tar.gz
Algorithm Hash digest
SHA256 4cba04a45977b020f4e334a09be60cfc6628443a6d6e82356d9dc7001e3e4e3b
MD5 7ce16bf7a8c5c69ce15c27d49a9fc123
BLAKE2b-256 75f6c1b1e32b8d440ba25d712f80460f1e07aabd93c2ecc54ff06b57107ec601

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for profiling_tools-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 434706660baac4edc7331ce128af82fa20f66b5d70d32fa9b049607250921e89
MD5 d29e85eac3a9ac9ee3048e17da0211a8
BLAKE2b-256 2768ad1deeba7c617263b11c44c325ae45e935cd3c9f26be03465402290cb7dc

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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