A note on execution times, speed and profiling¶
- About (time) profiling with Python (2 or 3):
profilein Python 2 documentation (in Python 3 documentation), this StackOverflow thread, this blog post, and the documentation of
line_profiler(to profile lines instead of functions) and
pycallgraph(to illustrate function calls) and
yappi(which seems to be thread aware).
- See also
pyreverseto get nice UML-like diagrams illustrating the relationships of packages and classes between each-other.
A better approach?¶
In January, I tried to use the PyCharm Python IDE, and it has an awesome profiler included! But it was too cumbersome to use…
An even better approach?¶
Well now… I know my codebase, and I know how costly or efficient every new piece of code should be, if I find empirically something odd, I explore with one of the above-mentionned module…
📜 License ? GitHub license¶
© 2016-2018 Lilian Besson.
Open Source? Yes! Maintenance Ask Me Anything ! Analytics PyPI version PyPI implementation PyPI pyversions PyPI download PyPI status Documentation Status Build Status Stars of https://github.com/SMPyBandits/SMPyBandits/ Releases of https://github.com/SMPyBandits/SMPyBandits/