Skip to main content

A minimal profiler for calculating memory usage and time

Project description


MyProfiler

A minimal profiler for calculating total execution time and memory usage

TestBadge PythonVersionBadge

InstallationUsage

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
========================================

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

myprofiler-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

myprofiler-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file myprofiler-0.0.1.tar.gz.

File metadata

  • Download URL: myprofiler-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.9

File hashes

Hashes for myprofiler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84b6f708509a5948a66bc077138d70911e41a89c13cc9b155bfa0e02b328338c
MD5 929de42867a80b5fb0742e807a14cada
BLAKE2b-256 54e342b0f6b1aaacc9e2032bbeb4a4424ab9b7bf34ac6fe8ee2f783ac1c4addb

See more details on using hashes here.

File details

Details for the file myprofiler-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: myprofiler-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.9

File hashes

Hashes for myprofiler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b0ac9f6829353c62f3efbfe00a7062ed900dfc6d117acbff49eef3876c35907
MD5 d6a64139dbbb220849ca0c2a09d0cd2a
BLAKE2b-256 ab2419bd3f72c8c2ca06f1fe3bb78bca8cc42e5e2b38b22c8502a1596e54fa85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page