Skip to main content


MyProfiler

A minimal profiler for calculating total execution time and memory usage

TestBadge PythonVersionBadge

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)

Source distribution for myprofiler 0.0.1
File Size Uploaded
myprofiler-0.0.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for myprofiler 0.0.1
File Interpreter ABI Platform
myprofiler-0.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page