Using Context Manager for Profiling
Posted on Thu 24 August 2017 in Python Profiling • Tagged with profiling, with-statement, context manager, python
We needed an ability to perform profiling in one of the classes we were implementing. The class was implementing a functionality that involved heavy computations, so it was a good idea to run profiling and find out where extra time is spent.
Continue reading