Git Product home page Git Product logo

timefile's Introduction

⏱️ timefile

Probably the simplest time profiling in python

📍 Getting started

pip install timefile

To time your functions simply import watch like this:

from timefile import watch
import time

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

@watch
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.

timefile's People

Contributors

hugofe99 avatar

Stargazers

 avatar Hugo Fernstrom avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.