Skip to main content

Estimate Asymptotic Runtime Complexity from Bytecode executions

Project description

pyPAL - Python Performance Analysis Library

Setup

This project requires CPython to run. Install Python >= 3.7, then install pyPAL by running:

pip install py-pal

Usage

Calling pyPAL as module:

pyPAL file.py   

Using the decorator:

@profile
def test():
    pass

Using the context manager:

with Tracer() as t:
    start_game()

Using the API:

t = Tracer()
t.trace()

# Your function
run()

t.stop()
estimator = ComplexityEstimator(tracer)
res = estimator.export()

# Do something with the resulting DataFrame
print(res)

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

py-PAL-0.1.1.tar.gz (81.7 kB view hashes)

Uploaded Source

Built Distribution

py_PAL-0.1.1-py3.7-win-amd64.egg (159.9 kB view hashes)

Uploaded Source

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