Skip to main content

Probably the simplest time profiling in python

Project description

⏱️ timefile

Probably the simplest time profiling in python

📍 Getting started

pip install timefile

To time your functions simply import timelog like this:

from timefile import timelog
import time

@timelog
def o_one(n):
    time.sleep(n/10**4)

@timelog
def o_two(m):
    time.sleep(m**2/10**4)

for i in range(10):
    o_one(i)
    o_two(i)

Check out the plots saved in the timefiles/plots/ directory for visualizations of the runtime.

🍻 Feedback and Contributions

I warmly welcome any contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas. Feel free to create issues or pull requests at the timefile GitHub.

🛣️ Roadmap

  • Tests !!!
  • Documentation
  • Small fixes / cleanup
  • Performance improvements
  • Prettier plots
  • Multivariable plots?
  • Simple regression or analysis?

⚠️ Disclaimer

This package is designed for simple runtime insights and is not optmized for performance. For more comprehensive profiling in Python, consider using more robust tools like cProfile, timeit, line_profiler, etc.

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

timefile-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timefile-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file timefile-0.1.1.tar.gz.

File metadata

  • Download URL: timefile-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for timefile-0.1.1.tar.gz
Algorithm Hash digest
SHA256 350ebaf436e4c4972b1ce66338156e24486a2f387caa569c211ead2d73bc71ec
MD5 e6c556857f8953c682b310c7ad53bd63
BLAKE2b-256 07c090dd922c0b7a2487d33d8ac6dffe59109c8bba288e0967a52fe6520c3e0c

See more details on using hashes here.

File details

Details for the file timefile-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: timefile-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for timefile-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 331f854f2691102f810f9585cf04398749c3fd17cf19199e4829eb1537864729
MD5 96dfe09620087761576567e02a78e6d8
BLAKE2b-256 8aa5bc61be0cac711298b1c6edd17cbbdba73a5cc71eaf9d939b83f3a65fd745

See more details on using hashes here.

Supported by

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