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 pypal
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
Release history Release notifications | RSS feed
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.0.tar.gz
(81.7 kB
view hashes)