Skip to main content

Python profiling tool

Project description

pprof

Downloads Code Style

Installing

pip install pprof

or

poetry add pprof

A Simple Example

from typing import List
from pprof import cpu

cpu.auto_report()

@cpu
def run(arr: List) -> float:
    tmp = []
    for row in arr:
        if row % 3 == 0:
            tmp.append(row)
    result = (sum(tmp*100) + len(arr)) / len(tmp)
    return result

run(list(range(100000)))
(venv) python run.py

Links

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

pprof-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pprof-0.1.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file pprof-0.1.1.tar.gz.

File metadata

  • Download URL: pprof-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.6.12 Darwin/19.6.0

File hashes

Hashes for pprof-0.1.1.tar.gz
Algorithm Hash digest
SHA256 10467f0afe72783eda4d841667818b0f02ccff18319d99c25587d9daf6f64b94
MD5 7c5aef70a44888e9b0ba6e97f780a0f6
BLAKE2b-256 03f4465946e8ecd16a6ef06168104db5dc1ee3e89b2cd36a825f1ff35a79993d

See more details on using hashes here.

File details

Details for the file pprof-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pprof-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.6.12 Darwin/19.6.0

File hashes

Hashes for pprof-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9aa0d3f950a4f1086bc5116e72709de59c3ca9cad2b01f76b99ae0b49dec27a
MD5 23f264fa73efb6a2c9e74cde7bd56729
BLAKE2b-256 6831d4b26e625bee5a91eedabff25b99d04fb1c82c6c08a04e141b0e5c808bb3

See more details on using hashes here.

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