Metadata-Version: 2.1
Name: eprofiler
Version: 0.0.5
Summary: a simple tool to monitor execution times of functions.
Home-page: https://github.com/eyukselen/eprofiler
Author: emre
Author-email: 
License: MIT
Project-URL: Homepage, https://github.com/eyukselen
Project-URL: Documentation, https://eprofiler.readthedocs.io/en/latest/index.html
Project-URL: Source, https://github.com/eyukselen/eprofiler
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
License-File: LICENSE

# eprofiler

Execution profiler

a simple tool to monitor execution times of functions.  can be installed from pypi

```pip install eprofiler```  

https://pypi.org/project/eprofiler/  
https://github.com/eyukselen/eprofiler  

import `timeit` function and use as a decorator for the function you want to monitor
if you pass an empty dict to it as below, you can get the results and use it in code.
otherwise it will print duration.


## usage:
```
from eprofiler import timeit

print("without stats dict provided")


@timeit()
def my_func_to_test():
    for x in range(100000):
        y = x ^ 2


my_func_to_test()
stats = {}

print("without stats dict provided")


@timeit(stats)
def my_func_to_test_with_stats():
    for x in range(100000):
        y = x ^ 2


my_func_to_test_with_stats()
print(stats)
```



