Skip to main content

pprof

PyPI Downloads Code Style PyPI - License Tests codecov python version

Installing

pip install pprof

or

poetry add pprof

A Simple Example

from time import sleep
from typing import List
from pprof import cpu

cpu.auto_report()

def foo():
    sleep(1.01)
    return 3

@cpu
def run(arr: List) -> float:
    tmp = []
    cnt = foo()

    # comment action #1
    for row in arr:
        # comment action #2 row 1
        # comment action #2 row 2
        if row % cnt == 0:
            tmp.append(row)
    result = (sum(tmp * 200) + len(arr)) / len(tmp)  # comment action #3
    return result

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

Metadata

Release files for pprof 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pprof 0.2.0
File Size Uploaded Provenance Actions
pprof-0.2.0.tar.gz 4.5 kB Without provenance Details for pprof-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pprof 0.2.0
File Interpreter ABI Platform Actions
pprof-0.2.0-py3-none-any.whl Python 3 none any Details for pprof-0.2.0-py3-none-any.whl

Total release size: 8.7 kB

Release files / pprof-0.2.0.tar.gz

Download URL pprof-0.2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cd34007e8f192e6829e8953ad7b9aa2311d37fd9625703d15ff2934a7af3151c
BLAKE2b-256 checksum
How to use checksums
e1f6cab19cdb4ecbb2a386f98166f81ea5c5ca68e1b0196c1876c67a414532bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.6.15 Linux/5.13.0-1017-azure

Release files / pprof-0.2.0-py3-none-any.whl

Download URL pprof-0.2.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f93c22c7fae319a52ec971360ce9402fa91fe21dfddf3e4e67c39ec4574f274
BLAKE2b-256 checksum
How to use checksums
064fb9d7c206d88231b0cd43a7110738af19fcef7c86203216bdfb4ef7cf76c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.6.15 Linux/5.13.0-1017-azure

Security for pprof 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page