Pyprofiler
Installation
Install from pypi
Install from repo
In virtual environment, install the package from this directory with: pip install .
Usage
Setup
Create a python module that contains a class which inherits from pyprofiler.profiler.PyProfiler.
Create methods that start with profile_.
The functions you want to profile in each method should be sent to self.pyprofile (with additional arguments). self.pyprofile takes a lambda/function/callable and arguments, and performs profiling on it.
usage: pyprofiler [-h] {compare,profile}
Run profiler
Run profiler (and show change in percentage from previous run)
pyprofiler profile [-h] [-n NAME_OF_RUN] [-v] pyprofile_file
Compare runs
Compare a run to a different run.
pyprofiler compare [-h] profile_run_name_before profile_run_name_after
Release files for simple-pyprofiler 2024.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_pyprofiler-2024.0.1.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_pyprofiler-2024.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.2 kB
Release files / simple_pyprofiler-2024.0.1.tar.gz
| Download URL | simple_pyprofiler-2024.0.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9dbc464c619d55e1c32c7f1fa74e7fdb11e288246de8008e7435c887f0f7000
|
|
BLAKE2b-256 checksum How to use checksums |
2b92e70e708c7209ed4e95e416e99784e4716879fe06b6eb82ef2ed92ae8fe08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / simple_pyprofiler-2024.0.1-py3-none-any.whl
| Download URL | simple_pyprofiler-2024.0.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24c3ef66bb0312f7058c0cd39a2f83e459ff286bf1aaee6c4cc504af1dce17f7
|
|
BLAKE2b-256 checksum How to use checksums |
50a9847831f6bed74f8ffd01f9f8a3bd6e4a7845c3bbb2a34faeef736b57730c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|