Skip to main content

Python profiling tool

Project description

pprof

PyPI Downloads Code Style GitHub Tests codecov python version

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

Uploaded Source

Built Distribution

pprof-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pprof-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 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.2.tar.gz
Algorithm Hash digest
SHA256 74cebcb0e075e0f012dd1c6ad94e2a90a29ec961c091aa848eb2e07ea6edfa9e
MD5 16518e05a89ab2fcf32be8789b0fab40
BLAKE2b-256 a613085dcac1123bba01f9b0f4efeb588fbc89df434eb6249b968695a8d7993a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pprof-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34b76da14d4c7cac64ca16e00e4d5659e313990bb44c9d7cc23f64c5a7bac2ab
MD5 d2352f3706b70658d78812f9782e7fae
BLAKE2b-256 c5e4cfbb63209a715a882b95604a306c241c7850c82a42eecfb6945e49e0b31c

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