Python code performace metrics calculation tool
Project description
Perfwatch
Perfwatch is a python package that allows you to monitor the performance of your code. It is designed to be used in a Jupyter notebook, but can also be used in a Python script.
Table of Contents
Installation
To install perfwatch, run the following command:
pip install perfwatch
Development
To install perfwatch for development, clone the repository and run the following command:
poetry install
To setup pre-commit hooks, run the following command:
poetry run pre-commit install
To run the tests, run the following command:
poetry run pytest
Usage
from perfwatch import profile_decorator
@profile_decorator(["line", "cpu", "time"])
def test():
for _ in range(1000000):
pass
if __name__ == "__main__":
test()
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
perfwatch-1.2.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for perfwatch-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d7bb3fcc896915bba4a6f76bc186f36fc44984f7b5e546077b25f3e18e06b7d |
|
MD5 | 514d7094b3746e39e8c9355d03f488dd |
|
BLAKE2b-256 | e671d95df6d63848915a6136a75a82c766380245cf113fc9ef6d9a43892b1153 |