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

Uploaded Source

Built Distribution

profiling_tools-0.0.9-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: profiling_tools-0.0.9.tar.gz
  • Upload date:
  • Size: 3.9 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.9.tar.gz
Algorithm Hash digest
SHA256 a6efd6caf2fc15bf792122b9db6448b5bdb1a2b9cab8923f908d40514718c701
MD5 542fba4f892d5c020ee404c709032368
BLAKE2b-256 6aa73b7a583e1e70a0fcc98f8f62c19281ed71c4e3f2d3aea5e1aac81298fdbb

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on TheNewThinkTank/profiling-tools

Attestations:

File details

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

File metadata

File hashes

Hashes for profiling_tools-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 448c441927a651ecd9e325f057ce0baad2aecb3413f9b8af7fb4d36af4f60839
MD5 b0c77fa611aa39638a12a5ef184b79d8
BLAKE2b-256 116c58c45c1296d6ed78c79d577cd0bc5e30c9657151c6d2aa60b44341cae476

See more details on using hashes here.

Provenance

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