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.14.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.14-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for profiling_tools-0.0.14.tar.gz
Algorithm Hash digest
SHA256 d1e48610ff80c2f8e39ea73b974aaaa543bd9bab53e3aa411c9387bfe91b1e38
MD5 37971982eb28e6427ed4e69b30bf0683
BLAKE2b-256 c7ecedc7b0ab7b0fff7300040639509bbda4a97aab9db637175973806264837c

See more details on using hashes here.

Provenance

The following attestation bundles were made for profiling_tools-0.0.14.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.14-py3-none-any.whl.

File metadata

File hashes

Hashes for profiling_tools-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 cb9bc77882e468f8509b65cf40b20a7f7d7ebaa4b98217755ef3eb3e69bccdf3
MD5 9e7d01a1e98e4e17391ee71bbca451a7
BLAKE2b-256 f96998012dc90c5cb4102e5381309bc4258e9eeac135542aabaab3cd96c2f1c8

See more details on using hashes here.

Provenance

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