A minimal profiler for calculating total execution time and memory usage
Installation • Usage •
Installation
pip install myprofiler
Usage
from myprofiler import profile
@profile
def main():
lt = []
for i in range(0, 100000):
lt.append(i)
if __name__ == "__main__":
main()
output:
========================================
---- Meta Data ----
Function: main
Method: None
---- Memory Usage ----
Current memory usage: 936.0B
Peak memory usage: 3.4MiB
---- Time ----
Total Time: 0:00:00.039728
seconds: 0
microseconds: 39728
========================================
Metadata
Release files for myprofiler 0.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 | Provenance | Actions |
|---|---|---|---|---|
| myprofiler-0.0.1.tar.gz | 3.4 kB | Without provenance | Details for myprofiler-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myprofiler-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for myprofiler-0.0.1-py3-none-any.whl |
Total release size: 7.3 kB
Release files / myprofiler-0.0.1.tar.gz
| Download URL | myprofiler-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84b6f708509a5948a66bc077138d70911e41a89c13cc9b155bfa0e02b328338c
|
|
BLAKE2b-256 checksum How to use checksums |
54e342b0f6b1aaacc9e2032bbeb4a4424ab9b7bf34ac6fe8ee2f783ac1c4addb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.9
|
Release files / myprofiler-0.0.1-py3-none-any.whl
| Download URL | myprofiler-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b0ac9f6829353c62f3efbfe00a7062ed900dfc6d117acbff49eef3876c35907
|
|
BLAKE2b-256 checksum How to use checksums |
ab2419bd3f72c8c2ca06f1fe3bb78bca8cc42e5e2b38b22c8502a1596e54fa85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.9
|
Security for myprofiler 0.0.1
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.